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

Re: [PATCH] git-rebase.sh: Use POSIX/Susv command substitution instead of backticks

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 6, 2008, 00:59 UTC
Message-ID
<7vhcgm7vdx.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<alpine.LSU.1.00.0802052305080.8543@racer.site>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> And then you have to do it for all scripts in one go.  Mind you, it is not 
> really complicated: just one call to perl.

Please do not do this. If other people have pending changes, "cleanup for clean-up's sake" would create conflicts for no good reason.

There are only two cases such a clean-up patch is good:
 (1) When the maintainer is not yet accepting any patches after
     a release-freeze and there is no pending patches from the
     community, and/or if you can convince people with pending
     patches to rebase on top of the clean-up because the
     current codebase is so unmaintainably bad, then a
     whole-tree clean-up patch should go in before anything
     else, forcing everybody to rebase on top of it;
 (2) If you will be working on the code in an area, you may want
     to have the first one in the series a "pure clean-up and
     nothing else" of the whole area, and then build your real
     changes on top.  You still need to coordinate with people
     whose patches may get hit by your clean-ups, but you have
     to do this anyway because you will have conflicts from your
     "real changes".

Any other "clean-up patch" would result in a not-so-appreciated code churn. Please don't encourage it.

Previous: Johannes SchindelinNext: Junio C Hamano
Message 5 of 7 in “git-rebase.sh: Use POSIX/Susv command substitution instead of backticks”
  1. git-rebase.sh: Use POSIX/Susv command substitution instead of backticksJari Aalto, Feb 5, 2008
  2. Johannes SchindelinFeb 5, 2008
  3. Jari AaltoFeb 5, 2008
  4. Johannes SchindelinFeb 5, 2008
  5. Junio C HamanoFeb 6, 2008
  6. Junio C HamanoFeb 6, 2008
  7. Ralf WildenhuesFeb 6, 2008

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.