git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git-ls-files -m lists the same file multiple times
@ 2007-04-25  9:35 Andy Parkins
  2007-04-25 18:25 ` Junio C Hamano
  0 siblings, 1 reply; 5+ messages in thread
From: Andy Parkins @ 2007-04-25  9:35 UTC (permalink / raw)
  To: git

Hello,

I did a merge, which had conflicts, and then fixed the conflicts.  To see what 
files I'd changed I did git-ls-files -m.  This listed the same file multiple 
times.  Some of them twice and some of them three times.

I guess that it's showing different stages; but as the list is just filename, 
there is no way to tell which is which and it is just confusing.


Andy
-- 
Dr Andy Parkins, M Eng (hons), MIET
andyparkins@gmail.com

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

* Re: git-ls-files -m lists the same file multiple times
  2007-04-25  9:35 git-ls-files -m lists the same file multiple times Andy Parkins
@ 2007-04-25 18:25 ` Junio C Hamano
  2007-04-25 18:52   ` Andy Parkins
  0 siblings, 1 reply; 5+ messages in thread
From: Junio C Hamano @ 2007-04-25 18:25 UTC (permalink / raw)
  To: Andy Parkins; +Cc: git

Andy Parkins <andyparkins@gmail.com> writes:

> I did a merge, which had conflicts, and then fixed the conflicts.  To see what 
> files I'd changed I did git-ls-files -m.  This listed the same file multiple 
> times.  Some of them twice and some of them three times.
>
> I guess that it's showing different stages; but as the list is just filename, 
> there is no way to tell which is which and it is just confusing.

I did not imagine that anybody actually found 'ls-files -m'
useful, either during a conflicted merge or under the normal
situation.  'git diff --stat' is usually much more pleasant to
see.

Use 'ls-files -u' during conflicted merge and be happy.

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

* Re: git-ls-files -m lists the same file multiple times
  2007-04-25 18:25 ` Junio C Hamano
@ 2007-04-25 18:52   ` Andy Parkins
  2007-04-25 19:20     ` Junio C Hamano
  0 siblings, 1 reply; 5+ messages in thread
From: Andy Parkins @ 2007-04-25 18:52 UTC (permalink / raw)
  To: git; +Cc: Junio C Hamano

On Wednesday 2007, April 25, Junio C Hamano wrote:
> Andy Parkins <andyparkins@gmail.com> writes:
> > I did a merge, which had conflicts, and then fixed the conflicts. 
> > To see what files I'd changed I did git-ls-files -m.  This listed
> > the same file multiple times.  Some of them twice and some of them
> > three times.
> >
> > I guess that it's showing different stages; but as the list is just
> > filename, there is no way to tell which is which and it is just
> > confusing.
>
> I did not imagine that anybody actually found 'ls-files -m'
> useful, either during a conflicted merge or under the normal
> situation.  'git diff --stat' is usually much more pleasant to
> see.

Definitely.  You see I am in the strange position of being able to type 
faster than I can think, so typing

 git-ls-files -m | xargs git add

Saves me the trouble of engaging my brain :-)

> Use 'ls-files -u' during conflicted merge and be happy.

Great stuff - that's the one I wanted; in fact git-ls-files -m did what 
I wanted, because it didn't matter that xargs listed the same file 
multiple times.

Thanks


Andy

-- 
Dr Andy Parkins, M Eng (hons), MIET
andyparkins@gmail.com

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

* Re: git-ls-files -m lists the same file multiple times
  2007-04-25 18:52   ` Andy Parkins
@ 2007-04-25 19:20     ` Junio C Hamano
  2007-04-25 20:47       ` Andy Parkins
  0 siblings, 1 reply; 5+ messages in thread
From: Junio C Hamano @ 2007-04-25 19:20 UTC (permalink / raw)
  To: Andy Parkins; +Cc: git

Andy Parkins <andyparkins@gmail.com> writes:

> Definitely.  You see I am in the strange position of being able to type 
> faster than I can think, so typing
>
>  git-ls-files -m | xargs git add
>
> Saves me the trouble of engaging my brain :-)

Well, I do not think being able to type faster is so unique.  I
know more than a handful people who share that ;-).

You can use "git add -u" in 1.5.2 ;-)

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

* Re: git-ls-files -m lists the same file multiple times
  2007-04-25 19:20     ` Junio C Hamano
@ 2007-04-25 20:47       ` Andy Parkins
  0 siblings, 0 replies; 5+ messages in thread
From: Andy Parkins @ 2007-04-25 20:47 UTC (permalink / raw)
  To: git; +Cc: Junio C Hamano

On Wednesday 2007, April 25, Junio C Hamano wrote:

> Well, I do not think being able to type faster is so unique.  I
> know more than a handful people who share that ;-).

:-) Absolutely - not thinking laterally enough there was I?

> You can use "git add -u" in 1.5.2 ;-)

Ahead of me again. :-) good stuff.


Andy
-- 
Dr Andy Parkins, M Eng (hons), MIET
andyparkins@gmail.com

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

end of thread, other threads:[~2007-04-25 20:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-25  9:35 git-ls-files -m lists the same file multiple times Andy Parkins
2007-04-25 18:25 ` Junio C Hamano
2007-04-25 18:52   ` Andy Parkins
2007-04-25 19:20     ` Junio C Hamano
2007-04-25 20:47       ` Andy Parkins

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