You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Be able to list titan commits between a certain range
Solution
Show only commits in the specified revision range. When no is specified, it defaults to all. ie titan log -1 ugdemo would only show the most recent commit.
Alternatives
Do nothing and use some complex awk/sed combo
this shell oneliner returns the last commit titan log ugdemo | sed '/commit/h; $!d; x'| awk '{print $2}'
The text was updated successfully, but these errors were encountered:
We should pick a few basic ones to implement at first. Our CLI options framework may not like the "-1" style, but that is definitely what people are used to with git.
mcred
changed the title
revision range for git log
revision range for titan log
Oct 3, 2019
Problem
Be able to list titan commits between a certain range
Solution
Show only commits in the specified revision range. When no is specified, it defaults to all. ie
titan log -1 ugdemo
would only show the most recent commit.Alternatives
Do nothing and use some complex awk/sed combo
this shell oneliner returns the last commit
titan log ugdemo | sed '/commit/h; $!d; x'| awk '{print $2}'
The text was updated successfully, but these errors were encountered: