lists.zerezo.com
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC/PATCH 1/4] Add git-sequencer shell prototype
- Date: Thu, 3 Jul 2008 23:12:30 +0200
- From: Stephan Beyer <s-beyer@xxxxxxx>
- Subject: Re: [RFC/PATCH 1/4] Add git-sequencer shell prototype
Hi,
first, thanks for the --root idea ;-)
> BTW. what is best way of checking if given revision is parent-less?
I think count the number of parents is quite sane.
In sequencer I have:
count_parents() {
git cat-file commit "$1" | sed -n -e '1,/^$/p' | grep -c '^parent'
}
Regards,
Stephan
--
Stephan Beyer <s-beyer@xxxxxxx>, PGP 0x6EDDD207FCC5040F
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html