From: Martin Fick <mfick@codeaurora.org>
To: Junio C Hamano <gitster@pobox.com>
Cc: git@vger.kernel.org
Subject: Re: Checking out orphans with -f
Date: Wed, 18 Jan 2012 15:50:23 -0700 [thread overview]
Message-ID: <201201181550.23792.mfick@codeaurora.org> (raw)
In-Reply-To: <7vsjjcljmj.fsf@alter.siamese.dyndns.org>
On Wednesday, January 18, 2012 03:40:36 pm Junio C Hamano
wrote:
> Martin Fick <mfick@codeaurora.org> writes:
> > 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
>
> What do you mean by "abandon"?
>
> If you want to remove a branch "a" because you do not
> need it, you can check out some other branch and say
> "git branch -D a", no?
Actually, no I can't. I can check out some other branch
(assuming I have one), but I cannot then delete a, it
appears to already be deleted by virtue of checking out
another branch. I like that since I never checked it in,
better to clean up the garbage, but why can't I then
checkout another orphan to do the same thing?
-Martin
--
Employee of Qualcomm Innovation Center, Inc. which is a
member of Code Aurora Forum
next prev parent reply other threads:[~2012-01-18 22:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2012-01-18 23:12 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201201181550.23792.mfick@codeaurora.org \
--to=mfick@codeaurora.org \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.