git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Rogan Dawes <rogan@dawes.za.net>
To: Junio C Hamano <gitster@pobox.com>
Cc: Git Mailing List <git@vger.kernel.org>
Subject: Re: [PATCH] Allow git-mergetool to handle paths with a leading space
Date: Sun, 06 Jan 2008 12:51:41 +0200	[thread overview]
Message-ID: <4780B2BD.6020109@dawes.za.net> (raw)
In-Reply-To: <7vodbz5ka9.fsf@gitster.siamese.dyndns.org>

Junio C Hamano wrote:
> Rogan Dawes <rogan@dawes.za.net> writes:
> 
>> Signed-off-by: Rogan Dawes <rogan@dawes.za.net>
>>
>> ---
>> I am working on a project which has the root directory constructed
>> with a leading space. i.e. ./ dir/. "read" skips the leading space
>> char, and ends up with an incorrect filename, which can then not be
>> found. Setting IFS=\n solves this problem.
> 
> Does the project have a file that has letter 'n' (en) in its name?
> Have you tested your patch while having a conflict in that file?
> 

Yes, it works correctly.

$ git mergetool
merge tool candidates: kdiff3 tkdiff xxdiff meld gvimdiff vimdiff 
opendiff emerge vimdiff
Merging the files: 
webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/BackDoors.java 
webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/BlindSqlInjection.java 
webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/Challenge2Screen.java

Normal merge conflict for ' 
webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/BackDoors.java':
   {local}: modified
   {remote}: modified
Hit return to start merge resolution tool (kdiff3):
merge of 
webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/BackDoors.java 
failed

$

My copy and paste does not show the spaces properly, since everything 
gets wrapped. but the "Normal merge conflict for ' webgoat/" line would 
have taken the ' to the next line if the space was not there. :-)

Note that the lines after "Merging the files" don't include the spaces, 
but that is just cosmetic, IMO.

Rogan

  reply	other threads:[~2008-01-06 10:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-06  9:25 [PATCH] Allow git-mergetool to handle paths with a leading space Rogan Dawes
2008-01-06 10:18 ` Junio C Hamano
2008-01-06 10:51   ` Rogan Dawes [this message]
2008-01-06 11:48     ` Junio C Hamano
2008-01-07  7:37       ` Rogan Dawes
2008-01-07  9:09         ` Junio C Hamano
2008-01-08  1:19           ` Theodore Tso

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=4780B2BD.6020109@dawes.za.net \
    --to=rogan@dawes.za.net \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.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.
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 NNTP newsgroup(s).