git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* strange behavior of git diff-index
@ 2019-05-22 10:00 Oussama Ghorbel
  2019-05-22 14:54 ` Johannes Schindelin
  0 siblings, 1 reply; 3+ messages in thread
From: Oussama Ghorbel @ 2019-05-22 10:00 UTC (permalink / raw)
  To: git@vger.kernel.org

Hi,

git diff-index is giving me incorrect information, however if I run git diff, then git diff-index again it will show the correct information.
The steps are the following:
$ git diff-index --name-only HEAD
git appears to list all files in the project irrespective if they modified or not
$ git diff
$ git diff --cached
will show nothing. So I don't have any modification. 
Now strangely if I run git diff-index, it will also show nothing which is correction behavior.

my git version is 2.7.4
Any explanation?

Thanks,
Oussama

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

end of thread, other threads:[~2019-05-22 15:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-22 10:00 strange behavior of git diff-index Oussama Ghorbel
2019-05-22 14:54 ` Johannes Schindelin
2019-05-22 15:27   ` Oussama Ghorbel

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).