Skip to content

Commit f49d1c3

Browse files
committed
Simple checkout of last files in ezk.git undoing changes
1 parent 20a17ba commit f49d1c3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

EasyKey.git/ezk-git-atuc.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,16 @@ atucStatus() {
5656

5757
}
5858

59+
checkoutWay() {
60+
git log --all --oneline
61+
echo "Select a commit to checkout:"
62+
read cname
63+
executeCommand "git checkout $cname -- ."
64+
}
65+
5966
menuInit "Undoing changes"
6067
submenuHead "Undoing changes"
68+
menuItem a "Just checkout contents of previous commit into working dir" checkoutWay
6169
menuItem a "Revert last commit - (keep commit history - create new commit)" revertLastCommit
6270
menuItem b "Revert commit - (keep commit history - create new commit)" revertToCommit
6371
menuItem c "(Soft) Reset commit - (delete some commits - keep current working dir)" resetToCommit

0 commit comments

Comments
 (0)