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

Re: [PATCH] fixup-builtins: remove unused cruft

From
Jeff King <peff@peff.net>
Date
Jun 28, 2013, 16:45 UTC
Message-ID
<20130628164545.GB9127@sigill.intra.peff.net>
In-Reply-To
<1372434379-24085-1-git-send-email-artagnon@gmail.com>
On Fri, Jun 28, 2013 at 09:16:19PM +0530, Ramkumar Ramachandra wrote:
> The fixup-builtins script is only used by an unused remove-dashes target
> in the Makefile: remove that along with the script.

I am not sure of this justification. If you read the commit message from 36e5e70, which introduced the target, it was meant to be run manually as part of migrating away from dashed forms.

Running it today does still uncover some places that could be tweaked. However, I note that it also has a lot of false positives (e.g., removing dashes from places that are not commands, like filenames or config options). It also produces crappy output for documentation (if we do want to change dashed mentions, we would probably want to switch git-foo to `git foo` with some kind of quoting to make it more obvious).

So I think it is probably a good idea to remove it, but the justification is not "this is unused cruft", but more like:

  This script was added in 36e5e70 (Start deprecating "git-command" in
  favor of "git command", 2007-06-30) with the intent of aiding the
  transition away from dashed forms. However, nobody is really working
  on that transition, and even if they did, this tool will probably lead
  them in the wrong direction, as it produces a large number of
  questionable changes.
-Peff
Previous: Ramkumar RamachandraNext: Ramkumar Ramachandra
Message 2 of 5 in “fixup-builtins: remove unused cruft”
  1. fixup-builtins: remove unused cruftRamkumar Ramachandra, Jun 28, 2013
  2. Jeff KingJun 28, 2013
  3. Ramkumar RamachandraJun 28, 2013
  4. Junio C HamanoJun 28, 2013
  5. Ramkumar RamachandraJul 3, 2013

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.