From: Junio C Hamano <gitster@pobox.com>
To: Sergey Andreenko <andreenkosa@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: issue: strange `git diff --numstat` behavior.
Date: Sat, 13 Oct 2018 17:13:18 +0900 [thread overview]
Message-ID: <xmqqr2gu8dsx.fsf@gitster-ct.c.googlers.com> (raw)
In-Reply-To: <CAD1gVxMg0ZiKqFABrnwt0v_=wr2X_3ErkR92RmCAtFQnuM+L5w@mail.gmail.com> (Sergey Andreenko's message of "Fri, 12 Oct 2018 11:23:28 -0700")
Sergey Andreenko <andreenkosa@gmail.com> writes:
> git.exe diff --numstat "C:\diff" "C:\base"
> ...
> output will be:
>
> 0 1 {iff => ase}/1.txt
>
> So (folder_name_length) symbols were cut from the path (“C:\\d” and “C:\\b”).
>
> Is any way to avoid that? I have checked several git versions and they
> all do the same.
Not an attempt to offer a solution (I don't do windows), but just
trying to see what random things we can try, I wonder what you'd get
if you did something like
$ git diff --numstat //c/diff //c/base
next prev parent reply other threads:[~2018-10-13 8:13 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-12 18:23 issue: strange `git diff --numstat` behavior Sergey Andreenko
2018-10-13 8:13 ` Junio C Hamano [this message]
2018-10-18 18:38 ` [PATCH] diff: don't attempt to strip prefix from absolute Windows paths Johannes Sixt
2018-10-18 18:49 ` Stefan Beller
2018-10-18 19:11 ` Johannes Sixt
2018-10-19 16:58 ` [PATCH v2] " Johannes Sixt
2018-10-19 17:04 ` Stefan Beller
2018-10-19 1:34 ` [PATCH] " Junio C Hamano
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: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqqr2gu8dsx.fsf@gitster-ct.c.googlers.com \
--to=gitster@pobox.com \
--cc=andreenkosa@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.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.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).