get changes newer than a given revision with git show -
using simple example commits a
, b
, c
, d
in order (no weird tree structure), , given have sha
s a
, d
, using git show
this:
git show --no-patch --abbrev-commit --abbrev=7 --format=short d
that gives me commits a
, b
, c
, , d
. want revisions newer a
(exclusive of a
). don't know sha
s b
, c
, , i'm hoping can modify revision specification without needing make second call git.
is possible? reviewed gitrevisions , couldn't find applies. a^
, a~1
go in wrong direction.
my use case find changes deployed, have git sha
of last deployment.
git show a..d
set operation appears there shorthand it. when have 2 commits r1 , r2 (named according syntax explained in specifying revisions above), can ask commits reachable r2 excluding reachable r1 ^r1 r2 , can written r1..r2.
Comments
Post a Comment