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

Re: [PATCH] Remove tab character from conflicted files list part of the merge message

From
APAndy Parkins <andyparkins@gmail.com>
Date
Mar 13, 2007, 15:18 UTC
Message-ID
<200703131518.54076.andyparkins@gmail.com>
In-Reply-To
<Pine.LNX.4.63.0703131539430.22628@wbgn013.biozentrum.uni-wuerzburg.de>
On Tuesday 2007 March 13 14:42, Johannes Schindelin wrote:
> And of course the next guy will have the reverse problem, because he typed
> <TAB><SPACE> instead of <SPACE>*5. What do you tell _him_ after "fixing"
> this issue? "Do as _I_ do"?

That's basically what you're telling me by saying I can't have that change. But as it happens, no I wasn't doing this as a "do it my way" kind of thing. As it happens I /like/ tabs in my source code. However, this isn't source code.

Let's forget my own problem - I was only offering it as backstory. Consider a log message with no additional comments about the conflicts. The current output looks like this:

Conflicts: \tfile1.c \tfile2.c

Now, view this message on the terminal with git-log, now view it in gitk, now view it in qgit, now view it in git-gui. All of these could be set for different tab widths, and will hence display the log message differently.

git-merge has to pick one or the other - tabs or spaces - for me, I'd rather pick the one that means the message displays the same regardless of what the author of the viewer/terminal thought tabs should be set to that day. I'd also prefer that when others view the log there is more chance that they'll see the same as I do.

Of course, there is nothing we can do if a log message author chooses to put tabs in - but at least if git uses spaces the choice isn't already made.

Andy
-- 
Dr Andy Parkins, M Eng (hons), MIET
andyparkins@gmail.com
Previous: Johannes SchindelinNext: Johannes Schindelin
Message 3 of 6 in “Remove tab character from conflicted files list part of the merge message”
  1. Remove tab character from conflicted files list part of the merge messageAndy Parkins, Mar 13, 2007
  2. Johannes SchindelinMar 13, 2007
  3. Andy ParkinsMar 13, 2007
  4. Johannes SchindelinMar 13, 2007
  5. Andy ParkinsMar 13, 2007
  6. Junio C HamanoMar 14, 2007

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.