git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ls-files -t broken? Or do I just not understand it?
@ 2009-08-19  8:24 Björn Steinbrink
  2009-08-19  8:54 ` Matthieu Moy
  0 siblings, 1 reply; 7+ messages in thread
From: Björn Steinbrink @ 2009-08-19  8:24 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git

Hi,

ls-files -t seems to always show status H, even if the file was modified
or deleted, and thus gets shown by -m and -d respectively.

doener@atjola:git (master) $ git status
# On branch master
nothing to commit (working directory clean)
doener@atjola:git (master) $ rm git.c
doener@atjola:git (master) $ echo 123 > Makefile
doener@atjola:git (master) $ git ls-files -m
Makefile
git.c
doener@atjola:git (master) $ git ls-files -d
git.c
doener@atjola:git (master) $ git ls-files -t Makefile git.c
H Makefile
H git.c
doener@atjola:git (master) $ git add -u Makefile git.c
doener@atjola:git (master) $ git ls-files -m
doener@atjola:git (master) $ git ls-files -d
doener@atjola:git (master) $ git ls-files -t Makefile git.c
H Makefile
doener@atjola:git (master) $ 


I would have expected the first "ls-files -t" to say:
C Makefile
K git.c

Is that a bug, or am I just misunderstanding what -t is supposed to do?

Björn

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

end of thread, other threads:[~2009-08-19 17:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-19  8:24 ls-files -t broken? Or do I just not understand it? Björn Steinbrink
2009-08-19  8:54 ` Matthieu Moy
2009-08-19  9:04   ` Nguyen Thai Ngoc Duy
2009-08-19  9:14     ` Björn Steinbrink
2009-08-19  9:18       ` Nguyen Thai Ngoc Duy
2009-08-19 17:45         ` Junio C Hamano
2009-08-19 17:53           ` Matthieu Moy

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