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 shas 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 shas 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

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -