RE: Finding leaf nodes.

2015-04-13 Thread Jason Pyeron
> -Original Message- > From: Michael J Gruber > Sent: Monday, April 13, 2015 10:23 > > Jason Pyeron venit, vidit, dixit 12.04.2015 06:04: > > I am trying to find all the unmerged commits [5]. > > "Unmerged" to which branch? All. I was atempting to describe a leaf node. > > It's not cl

Re: Finding leaf nodes.

2015-04-13 Thread Michael J Gruber
Jason Pyeron venit, vidit, dixit 12.04.2015 06:04: > I am trying to find all the unmerged commits [5]. "Unmerged" to which branch? It's not clear to me which commits you are looking for. By "leaf node" I would describe a commit without child commits. "unmerged" can only be understood relative to

Finding leaf nodes.

2015-04-11 Thread Jason Pyeron
I am trying to find all the unmerged commits [5]. I can find, as a human, all the commits by git log --oneline --graph --all [1] but I am looking for a scripted way. But git show-branch -a --independent misses some [2] find .git/refs/ -type f -exec cat '{}' ';' | sort -u; finds too much [3].