From: Junio C Hamano <junkio@cox.net>
To: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Cc: Andy Parkins <andyparkins@gmail.com>, git@vger.kernel.org
Subject: Re: [PATCH] Remove tab character from conflicted files list part of the merge message
Date: Wed, 14 Mar 2007 02:26:15 -0700 [thread overview]
Message-ID: <7vslc8ch1k.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: <Pine.LNX.4.63.0703131539430.22628@wbgn013.biozentrum.uni-wuerzburg.de> (Johannes Schindelin's message of "Tue, 13 Mar 2007 15:42:03 +0100 (CET)")
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> On Tue, 13 Mar 2007, Andy Parkins wrote:
> ...
>> Was appearing in the log display as
>>
>> Conflicts:
>> file.c
>> * Chose upstream version over mine, but integrated my small typo fix.
>>
>> Which isn't how I'd intended at all.
>>
>> The fix is of course - no tabs. Tabs for formatting is always going to
>> cause trouble, so this patch swaps the tab for spaces.
>
> 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"?
Actually, tabs are for indent and everybody knows that. In
Andy's example, I think the bug is in typing spaces before the
explanatory message "* Chose upstream...". An obvious fix is to
type a tab instead.
Non-email pretty formats give 4-space margin at the left, and it
indeed is annoying if you drew ascii art in the commit message
and later discover you mistakenly used tab when you meant
spaces.
Having said that, I do not have a strong feeling either way. If
I have to choose, I would probably replace the TAB with two
spaces, if only to match merge.summary output:
Merge branch 'blah'
* blah:
third commit on blah topic
second commit on blah topic
first commit on blah topic
Conflicts:
blah.c
xyzzy.h
prev parent reply other threads:[~2007-03-14 9:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-13 13:09 [PATCH] Remove tab character from conflicted files list part of the merge message Andy Parkins
2007-03-13 14:42 ` Johannes Schindelin
2007-03-13 15:18 ` Andy Parkins
2007-03-13 15:44 ` Johannes Schindelin
2007-03-13 16:22 ` Andy Parkins
2007-03-14 9:26 ` Junio C Hamano [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7vslc8ch1k.fsf@assigned-by-dhcp.cox.net \
--to=junkio@cox.net \
--cc=Johannes.Schindelin@gmx.de \
--cc=andyparkins@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.