git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Git Questions

From
TSTom Schinckel <gunny01@gmail.com>
Date
Aug 20, 2007, 09:55 UTC
Message-ID
<1187603749.11595.10.camel@tom-desktop>
Hi all,

I've just started using git to run a repository on my local machine. I'm wondering about the following questions:

Is it possible to change the revision numbers from long hashes to normal numbers (i.e, 0001 for first, 0002 for the second)

Can I set up Git to:
a) Automatically commit a file to the repository every time it's saved
b) Automatically use the default hashed-out bit:
	# Please enter the commit message for your changes.
	# (Comment lines starting with '#' will not be included)
	# Updated but not checked in:
	#   (will commit)
	#
	#       modified:   TOK/bce.abw
	#
	# Untracked files:
	#   (use "git add" to add to commit)
	#
	#       TOK/bce.abw.bak~

as the commit message? (i.e, remove the hash signs and not bring up vim in the first place?)

Thanks for any help.
tom
Next: Jeff King
Message 1 of 9 in “Git Questions”
  1. Tom SchinckelAug 20, 2007
  2. Jeff KingAug 20, 2007
  3. David KågedalAug 20, 2007
  4. Tom SchinckelAug 20, 2007
  5. Andy ParkinsAug 20, 2007
  6. David TweedAug 20, 2007
  7. Jan HudecAug 20, 2007
  8. Matthieu MoyAug 20, 2007
  9. David TweedAug 20, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.