File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -16,13 +16,22 @@ allTags() {
1616 find .git/refs/tags -type f -exec sh -c ' echo "File: $1"; cat "$1"' _ {} \;
1717}
1818
19+ contCommit () {
20+ git log --all --graph --decorate --oneline --format=' %C(bold blue)%h%Creset %s %C(bold green)(%cd)%Creset %an' --date=format:' %Y-%m-%d %H:%M'
21+ echo " Enter commit to display:"
22+ read cname
23+ [ " ${cname} " = " " ] && waitonexit && return
24+ git cat-file -p $cname
25+ }
26+
1927setActual
2028
2129menuInit " Git object internals"
2230submenuHead " Usefull commands "
2331menuItem b " Current HEAD pointer" " git symbolic-ref HEAD"
2432menuItem c " Inspect current tree object" " git cat-file -p ${actual} ^{tree}"
2533menuItem d " Inspect current commit object" " git cat-file -p ${actual} ^{commit}"
34+ menuItem e " Show contents of commit object" contCommit
2635menuItem e " All branches" allBranches
2736menuItem f " All tags" allTags
2837startMenu " setActual"
You can’t perform that action at this time.
0 commit comments