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

Re: [PATCH 2/2] Fix t3404 assumption that `wc -l` does not use whitespace.

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Apr 28, 2008, 10:13 UTC
Message-ID
<alpine.DEB.1.00.0804281112500.2949@eeepc-johanness>
In-Reply-To
<7vej8rgq62.fsf@gitster.siamese.dyndns.org>
Hi,
On Sun, 27 Apr 2008, Junio C Hamano wrote:
Show 6 quoted lines
> Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> 
> > ...  It did not help that I hated the fact that that series changed 
> > the original design without even understanding it.
> 
> Care to elaborate on this point further?  I do not get it.

The original implementation of -p was modeled closely after filter-branch, in that it created a subdirectory (dotest/rewritten) containing the new commit names for those commits that were rewritten.

Now, whenever a commit was picked, the parents would be looked up in dotest/rewritten, and replaced with the rewritten name (or left unchanged if they were not rewritten).

In that manner, every commit is identified by the (original) commit name. <irony>Surprisingly, this is the way Git was meant to operate</irony>

Now, a mark command has been introduced which is totally unnecessary. Commits can _still_ be identified by their (original) commit name. That's the whole assumption rebase -i relies on.

Basically, the output of rebase -i -p is ugly now, because you have _two_ ways of specifying things, and frankly, I would have to read documentation to find out when to use what. And I maintain that this was not necessary with the old way rebase -i operated.

So I am really unhappy that this patch series made it in, and I am even more unhappy that my suggestions (which I made, in spite of moving between two countries, and in spite of spending a lot of time with someone very special, and therefore having less time for Git than I would have liked to) were blatantly ignored.

It would have been easier for me if I would not be so utterly convinced that the "new" way is so much more complicated and unintuitive than what I suggested.

And now it is already in "next", which does not help me at all (me being very busy at the moment to find a job). I am also slightly uneasy about the fact that a few obvious mistakes had to be fixed in the last days.

Formulations such as "deliberately leaves $DOTEST directory behind if clean-up fails" make me wonder, too: I sincerely hope that I misunderstand the intention of this message.

I have the feeling that I have to repeat my point again, so that it is not ignored -- again. Maybe an example would help:

-- snip -- pick abcdefg This is the first commit to be picked reset cdefghij pick zyxwvux A commit in a side-branch merge recursive abcdefg -- snap --

I am convinced that this syntax does not need much explanation.

A patch implementing a syntax like this would have won my unilateral approval (modulo expr/tac quirks, but that would have been easy to fix).

Ciao, Dscho who does not like complicator's gloves

Previous: Junio C HamanoNext: Jörg Sommer
Message 15 of 23 in “Fix t3404 assumption that `wc -l` does not use whitespace.”
  1. 2/2 Fix t3404 assumption that `wc -l` does not use whitespace.Brian Gernhardt, Apr 27, 2008
  2. Johannes SchindelinApr 27, 2008
  3. Brian GernhardtApr 27, 2008
  4. Jeff KingApr 28, 2008
  5. Mike RalphsonApr 28, 2008
  6. Jeff KingMay 13, 2008
  7. Mike RalphsonMay 13, 2008
  8. Mike RalphsonMay 15, 2008
  9. Jeff KingMay 15, 2008
  10. Jeff KingMay 15, 2008
  11. Junio C HamanoMay 15, 2008
  12. Mike RalphsonMay 16, 2008
  13. Brian GernhardtApr 28, 2008
  14. Junio C HamanoApr 27, 2008
  15. Johannes SchindelinApr 28, 2008
  16. Jörg SommerApr 28, 2008
  17. Johannes SchindelinApr 28, 2008
  18. Jörg SommerApr 28, 2008
  19. Johannes SchindelinApr 28, 2008
  20. Junio C HamanoApr 28, 2008
  21. Johannes SchindelinApr 28, 2008
  22. Junio C HamanoApr 28, 2008
  23. Johannes SchindelinApr 28, 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.