git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git diff-files weirdness (bug?)
@ 2008-05-23 14:20 Catalin Marinas
  2008-05-23 16:14 ` Linus Torvalds
  0 siblings, 1 reply; 11+ messages in thread
From: Catalin Marinas @ 2008-05-23 14:20 UTC (permalink / raw)
  To: git

Hi,

I was investigating a bug in "stg refresh" failing with moved files
and noticed that it was caused by Git (HEAD pulled yesterday):

  git init
  touch a
  git add a
  git commit -m "test"
  git mv a b

These are OK:

  git diff-files -- a
  git diff-files -- b

These fail:

  git diff-files -- a b
  git diff-files -- a c

These are OK:

  git diff-files -- a b c
  git diff-files -- a b c d e
  git diff-files -- c d e
  ...

It looks like the two arguments command is a special case. Passing
"-q" doesn't make any difference.

Thanks.

-- 
Catalin

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

end of thread, other threads:[~2008-05-24  7:27 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-23 14:20 git diff-files weirdness (bug?) Catalin Marinas
2008-05-23 16:14 ` Linus Torvalds
2008-05-23 16:50   ` Linus Torvalds
     [not found]     ` <7vbq2wsxnk.fsf@gitster.siamese.dyndns.org>
2008-05-23 22:49       ` [PATCH] diff -- file1 file2: do not default to --no-index inside a git repository Johannes Schindelin
2008-05-23 22:50         ` [ALTERNATIVE PATCH] diff " Johannes Schindelin
2008-05-24  7:25           ` Junio C Hamano
2008-05-24  7:25           ` [PATCH 1/3] tests: do not use implicit "git diff --no-index" Junio C Hamano
2008-05-24  7:26           ` [PATCH 2/3] diff-files: do not play --no-index games Junio C Hamano
2008-05-24  7:26           ` [PATCH 3/3] "git diff": do not ignore index without --no-index Junio C Hamano
2008-05-24  0:00         ` [PATCH] diff -- file1 file2: do not default to --no-index inside a git repository Junio C Hamano
2008-05-24  5:17           ` 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;
as well as URLs for NNTP newsgroup(s).