public inbox for git@vger.kernel.org 
 help / color / mirror / Atom feed
* [BUG] git diff --(src|dst)-prefix=// causes spurious "(new|deleted) file mode"
@ 2014-05-28  1:55 Noam Postavsky
  2014-05-28 17:29 ` Junio C Hamano
  0 siblings, 1 reply; 2+ messages in thread
From: Noam Postavsky @ 2014-05-28  1:55 UTC (permalink / raw)
  To: git

% git init
Initialized empty Git repository in /home/npostavs/tmp/scratch/.git/
% echo foo > x
% git add x
% git commit -m x
[master (root-commit) 41be1f2] x
 1 file changed, 1 insertion(+)
 create mode 100644 x
% echo bar > x
% git diff  | head -3
diff --git i/x w/x
index 257cc56..5716ca5 100644
--- i/x
% git diff --dst-prefix=// | head -3
diff --git i/x //x
deleted file mode 100644
index 257cc56..5716ca5 100644
% git diff --src-prefix=// | head -3
diff --git //x w/x
new file mode 100644
index 257cc56..5716ca5 100644
% git diff --src-prefix=// --dst-prefix=// | head -3
diff --git //x //x
new file mode 100644
index 257cc56..5716ca5 100644
% git --version
git version 1.9.2

Background: trying to find a prefix that can't show up in file names
in order to make parsing easier.
https://github.com/magit/magit/pull/1379
https://github.com/magit/magit/pull/1383

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-05-28 17:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-28  1:55 [BUG] git diff --(src|dst)-prefix=// causes spurious "(new|deleted) file mode" Noam Postavsky
2014-05-28 17:29 ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox