From: Noam Postavsky <npostavs@users.sourceforge.net>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Alan Mackenzie <acm@muc.de>, Paul Eggert <eggert@cs.ucla.edu>,
Emacs developers <emacs-devel@gnu.org>,
Kaushal Modi <kaushal.modi@gmail.com>
Subject: Re: Trouble merging line-numbers branch into master
Date: Sat, 8 Jul 2017 08:05:44 -0400 [thread overview]
Message-ID: <CAM-tV--Kj5f=oyWn04VhQCXNHDKxRCiDobeLg7E98973WdzNdg@mail.gmail.com> (raw)
In-Reply-To: <83inj3l5gi.fsf@gnu.org>
On Sat, Jul 8, 2017 at 4:04 AM, Eli Zaretskii <eliz@gnu.org> wrote:
>
> I've just merged the branch, and didn't have any such problems. In
> the diffs I see no changes due to whitespace only, and the only merge
> conflict I had, in NEWS, had nothing to do with whitespace and was
> resolved without introducing any whitespace.
>
> So I really don't understand what is this all about. If SPC followed
> by a TAB is detected when you merge, it was already there in master
> before the merge, and the merge itself is not the problem.
The old git hook checks *both* sides of the merge, so changes
introduced on the master branch after you branched off would also
trigger the error, but only if you happen to hit a conflict or
otherwise end up editing the merge commit message for some other
reason (e.g., using a dumb terminal which can't run $EDITOR).
The latter confusing condition is why the hook was changed to only
check the newly merged in changes, but you need to run './autogen git'
to update it in your local copy (I assume Kaushal had not done so,
hence the error).
>> Slowly and gradually, as more merges and commits happen in future, all such mixtures of tabs+spaces will
>> get removed.
>
> They cannot be removed completely, because indentation doesn't always
> end in a column whose number is an integral multiple of the tab width.
I believe git only complains about tab following spaces, not spaces
following tabs.
next prev parent reply other threads:[~2017-07-08 12:05 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-07 15:43 Trouble merging line-numbers branch into master Kaushal Modi
2017-07-07 15:51 ` Noam Postavsky
2017-07-07 18:08 ` Kaushal Modi
2017-07-07 21:23 ` Alan Mackenzie
2017-07-07 21:38 ` Stefan Monnier
2017-07-07 21:41 ` Paul Eggert
2017-07-07 21:46 ` Kaushal Modi
2017-07-08 8:04 ` Eli Zaretskii
2017-07-08 12:05 ` Noam Postavsky [this message]
2017-07-08 12:46 ` Kaushal Modi
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAM-tV--Kj5f=oyWn04VhQCXNHDKxRCiDobeLg7E98973WdzNdg@mail.gmail.com' \
--to=npostavs@users.sourceforge.net \
--cc=acm@muc.de \
--cc=eggert@cs.ucla.edu \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=kaushal.modi@gmail.com \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).