Git: how to get a list of all revisions since some commit? -
using rev-list, i've figured out how list of revisions on 1 branch since commit. how can list of revisions on all branches since commit? let's top of repository looks following. how can list of commits since bbbbbbb (commits 3, 4, 5, , 6)? don't care order.
* fffffff 6 * ddddddd 4 | * eeeeeee 5 | * ccccccc 3 |/ * bbbbbbb 2 * aaaaaaa 1 cdhowie's answer need, returns commits unrelated branches. if expand tree shape, don't want see commit 7 listed.
* 0000000 7 | * fffffff 6 | * ddddddd 4 | | * eeeeeee 5 | | * ccccccc 3 | |/ | * bbbbbbb 2 |/ * aaaaaaa 1
git rev-list ^bbbbbbb branches...
for example, on test repository:
chris@zack:~/git-test$ git log --all --graph --oneline * 8daff2c f <-- test * 5f57b15 d | * 764a725 e <-- master | * 5889800 c |/ * 294908b b * 975d652 chris@zack:~/git-test$ git rev-list ^294908b master test 8daff2c59d8cb966bf399de5027fae85ee016081 5f57b1524afeafbf37984f84fa5fe24ee0ac8501 764a7256d40dbefdb6278443fb80266f00358a37 58898005214607e5c53b45954a98891ea599c037
Comments
Post a Comment