git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git-status -- trying to understand all possible states
@ 2014-04-01 20:07 Michael Toy
  2014-04-01 21:37 ` Junio C Hamano
  2014-04-01 22:20 ` Jonathan Nieder
  0 siblings, 2 replies; 5+ messages in thread
From: Michael Toy @ 2014-04-01 20:07 UTC (permalink / raw)
  To: git

I also have this question posted to stack overflow ( http://stackoverflow.com/questions/22792906/how-do-i-produce-every-possible-git-status ), but perhaps this is a better place to ask this question.

In working on some code which provides an interface to existing git repositories the question I had was "what actions should I present to a user", which lead to the question, "what does a user need to do to generate that condition", which lead to developing this gist:

https://gist.github.com/the-michael-toy/9907309

... which is a ruby script which tries to produce a repository with a file in every possible "git-status" XY condition

Of the 24 possibilities (not counting ignored) in git-status, there are 7 that I can't figure out how to generate.

D           M    deleted from index
C        [ MD]   copied in index
D           D    unmerged, both deleted
A           U    unmerged, added by us
U           A    unmerged, added by them

any clues, including pointers to "just go read XXX" would be appreciated.

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

end of thread, other threads:[~2014-04-03  9:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-01 20:07 git-status -- trying to understand all possible states Michael Toy
2014-04-01 21:37 ` Junio C Hamano
2014-04-01 23:01   ` Michael Toy
2014-04-01 22:20 ` Jonathan Nieder
2014-04-02  8:31   ` 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).