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, 02:03 UTC
Message-ID
<7vve526dts.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<7vhcgm7vdx.fsf@gitster.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> writes:
Show 29 quoted lines
> 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.
Just to make sure Jari does not get a wrong idea,

My "Please don't" is meant against Johannes's "Do it all if you do it".

If Jari did the patch as the first step of making real changes to "git rebase" (making -i not forcing -m, perhaps), it is the right thing to have a clean-up patch as a preparatory step, before starting the real work in later patches in the series. And such a clean-up patch should not inflict useless code churn on other commands.

So a single patch only to git-rebase is acceptable if that is what Jari is planning to do: preparatory clean-up before bringing a real improvement in.

Previous: Junio C HamanoNext: Ralf Wildenhues
Message 6 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.