News for hackers. Stuff that matters.
Re:Ask HN: Can we do better than Git for version control? by kmacleod on Monday December 11, 2023 @07:15PM (#38607371)

  git log <base-branch>..<branch>
I often need the count of commits, usually for build IDs,

  git rev-list --count <branch> ^<base-branch>
I usually use gitk for visualizing branch commits. CLI equivalent is

  git log --graph --oneline --all
Re:Ask HN: Can we do better than Git for version control? by liveoneggs on Tuesday December 12, 2023 @07:31AM (#38611340)
he is saying that finding <base-branch> is too hard. There is probably some magic with git merge-base or git show-branch but I don't know them well enough to do it