Skip to content

Commit b5b3180

Browse files
committed
ezk.git added command to explore custom commit in repo
1 parent e20428c commit b5b3180

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

EasyKey.git/ezk-git-giob.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ currentObjects() {
5353
importantLog "branch: $branch"
5454
# Step 2: Get the commit object from the branch
5555
commit=$(git rev-parse "$branch")
56-
importantLog "head commit: $commit"
56+
echo "Enter custom commit to explore or press enter to take branch head!"
57+
read ccommit
58+
[ "$ccommit" != "" ] && commit=$ccommit;
59+
importantLog "commit: $commit"
5760
# Step 3: Get the tree object from the commit object
5861
tree=$(git cat-file -p "$commit" | awk '/^tree/ {print $2}')
5962
importantLog "tree: $tree"

0 commit comments

Comments
 (0)