git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Checking out orphans with -f
@ 2012-01-18 19:07 Martin Fick
  2012-01-18 22:40 ` Junio C Hamano
  0 siblings, 1 reply; 5+ messages in thread
From: Martin Fick @ 2012-01-18 19:07 UTC (permalink / raw)
  To: git

I am trying to write some scripts which do various things to 
a git repo and I have run into a issue where I think that 
git behavior with respect to orphan branches is potentially 
undesirable.  If I type:

  git checkout --orphan a

I cannot easily abandon this state by simply typing:

  git check -f --orphan b

Is there a better simpler way to abandon a that I am not 
aware of?  Am I miss understanding what -f is supposed to 
do?  It seems like it should allow me to abandon the a 
orphan and continue to checkout the b orphan?

Thanks for any insights,

-Martin

-- 
Employee of Qualcomm Innovation Center, Inc. which is a 
member of Code Aurora Forum

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

end of thread, other threads:[~2012-01-18 23:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-18 19:07 Checking out orphans with -f Martin Fick
2012-01-18 22:40 ` Junio C Hamano
2012-01-18 22:45   ` Martin Fick
2012-01-18 22:50   ` Martin Fick
2012-01-18 23:12     ` 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;
as well as URLs for NNTP newsgroup(s).