From: Stephan Beyer <hidden> Date: 2016-06-15 22:44:53
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 [off-list ref], PGP 0x6EDDD207FCC5040F