From: greened@obbligato.org
To: Drew Crawford <drew@drewcrawfordapps.com>
Cc: "git\@vger.kernel.org" <git@vger.kernel.org>
Subject: Re: git subtree error (just how do you expect me to merge 0 trees?)
Date: Mon, 31 Dec 2012 20:09:55 -0600 [thread overview]
Message-ID: <87licd3b7w.fsf@waller.obbligato.org> (raw)
In-Reply-To: <FBE22FDC-5800-40C8-9778-82DFD27579F6@drewcrawfordapps.com> (Drew Crawford's message of "Thu, 18 Oct 2012 18:04:57 -0500")
Drew Crawford <drew@drewcrawfordapps.com> writes:
> Ideally it would be better to emit an error-message from a script
> higher up the calling chain that would be more descriptive about the
> problem (such as suggesting no branch is specified).--
I'm looking at implementing this but I need a bit of help from the git
experts.
git-subtree add accepts either a refspec or a path to a repository and a
refspec. With one positional option, git-subtree add simply assumes
it's a refspec. Is there an easy way to check whether a string is a
proper refspec? Even better would be a way to check if a string is a
path to a git repository.
-David
next prev parent reply other threads:[~2013-01-01 2:21 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-18 23:04 git subtree error (just how do you expect me to merge 0 trees?) Drew Crawford
2013-01-01 1:44 ` greened
2013-01-01 2:09 ` greened [this message]
2013-01-01 3:16 ` Junio C Hamano
2013-01-01 4:04 ` greened
2013-01-01 5:54 ` Junio C Hamano
2013-01-01 2:39 ` greened
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=87licd3b7w.fsf@waller.obbligato.org \
--to=greened@obbligato.org \
--cc=drew@drewcrawfordapps.com \
--cc=git@vger.kernel.org \
/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.