* git-ls-files --unmerged implies --stages: ?
@ 2006-03-09 15:19 Matthias Urlichs
2006-03-09 18:50 ` Junio C Hamano
0 siblings, 1 reply; 2+ messages in thread
From: Matthias Urlichs @ 2006-03-09 15:19 UTC (permalink / raw)
To: git
Hi,
I wonder why git-ls-files --unmerged implies --stages. One nice use case
for this command is to edit all the conflicting files after a failed
merge, i.e.
$ vi $(git-ls-files --unmerged)
except I need a pipe to throw out all the cruft in there.
Does anybody depend on that implication, or do I need to add a "no-stages"
option, or am I blind and there's a better way to do this?
--
Matthias Urlichs
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: git-ls-files --unmerged implies --stages: ?
2006-03-09 15:19 git-ls-files --unmerged implies --stages: ? Matthias Urlichs
@ 2006-03-09 18:50 ` Junio C Hamano
0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2006-03-09 18:50 UTC (permalink / raw)
To: Matthias Urlichs; +Cc: git
Matthias Urlichs <smurf@smurf.noris.de> writes:
> I wonder why git-ls-files --unmerged implies --stages. One nice use case
> for this command is to edit all the conflicting files after a failed
> merge, i.e.
>
> $ vi $(git-ls-files --unmerged)
>
> except I need a pipe to throw out all the cruft in there.
I typically use git diff --name-only for this (yes I probably
need to uniq them out), but you can certainly talk me into
introducing --unmerged --name-only. If nobody objects, even
making --unmerged independent from --stages might be a sensible
thing to do -- if we do so you would need --unmerged --stages to
get the current behaviour.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-03-09 18:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-09 15:19 git-ls-files --unmerged implies --stages: ? Matthias Urlichs
2006-03-09 18:50 ` 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