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

Re: The big git command renaming..

From
DJDave Jones <davej@redhat.com>
Date
Apr 29, 2005, 21:35 UTC
Message-ID
<20050429213540.GA1691@redhat.com>
In-Reply-To
<Pine.LNX.4.58.0504291416190.18901@ppc970.osdl.org>
On Fri, Apr 29, 2005 at 02:24:43PM -0700, Linus Torvalds wrote:
 > 
 > Ok, I hate to do this, since my fingers have already gotten used to the 
 > old names, but we clearly can't continue to use command names like 
 > "update-cache" or "read-tree" that are totally non-git-specific.
 > 
 > So I just pushed out a change that renames the commands to always have a 
 > "git-" prefix. In addition, I renamed "show-diff" to "diff-files", with 
 > together with the prefix means that it becomes "git-diff-files" when used.
 > 
 > Since I end up using tab-completion for almost all my work, and since
 > -within- the source directory there's no confusion, I didn't actually name
 > the source files with any git- prefix. Quite the reverse: I removed the
 > prefix from the two .c files that already had it (so git-mktag.c is now
 > just "mktag.c"), and the general rule for building the executable from a C 
 > file is now
 > 
 > 	git-%: %.c $(LIB_FILE)
 > 		$(CC) $(CFLAGS) -o $@ $(filter %.c,$^) $(LIBS)
 > 
 > 
 > this seemed to be a nice regular interface that means that binaries get 
 > installed with clear "git-" prefixes, but that I don't have to look at 
 > them when I edit the sources.

Can you push out a new tarball to kernel.org too please, to kill some potential confusion in documentation/scripts ?

		Dave
Previous: Linus TorvaldsNext: H. Peter Anvin
Message 2 of 10 in “The big git command renaming..”
  1. Linus TorvaldsApr 29, 2005
  2. Dave JonesApr 29, 2005
  3. H. Peter AnvinApr 29, 2005
  4. Linus TorvaldsApr 29, 2005
  5. H. Peter AnvinApr 29, 2005
  6. Linus TorvaldsApr 29, 2005
  7. H. Peter AnvinApr 29, 2005
  8. The big git command renaming fallout fix.Junio C Hamano, Apr 29, 2005
  9. Makefile: The big git command renaming fallout fix.Junio C Hamano, Apr 29, 2005
  10. Nicolas PitreApr 30, 2005

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.