Commit graph

11 commits

Author SHA1 Message Date
vr8ce 27f42beb81 Tighten numeric regex 2020-06-19 22:56:55 -05:00
vr8ce 6ccd2fa439 Cleanup code 2020-06-18 23:38:55 -05:00
vr8ce 9dca93eeb2 Modify to work when only a single commit, add parameter checks 2020-06-17 20:11:07 -05:00
Peter Bittner b7d507567b Make git undo -s restore the staging area 2018-08-17 16:22:54 +02:00
spacewander 16591d3788 git-undo: add confirmation when -h is specified 2018-02-07 10:37:55 +08:00
hemanth.hm 7b7913fab1 More portable she-bangs. 2014-11-30 17:47:26 +05:30
nickl- 501d4b2759 Recommit of @d153e9c Changes to PR #114.
Added -s --soft arguments as well.
Default roll-back one with HEAD^ and only using ~ if commit count more than 1.
Added auto complete.
Updated documentation.
Attitude adjustment: don't throw errors and say NO as suggested in #114, have a can do attitude instead, leave the errors up to git to report.
2012-07-23 00:11:11 +02:00
Leila Muhtasib 6459db39aa git-undo now includes -h|--hard option.
-h option allows you to undo the last commit without keeping the
changes in the local working directory. Use with care.
Updated documentation to include new option.
2012-07-22 22:27:37 +02:00
Leila Muhtasib 67a5be6cc9 git-undo now keeps file changes when undoing.
Wiping out previous commits is error prone. Most people probably want to edit their
changes and commit again. Modified behavior so that when undoing a commit, changes
are left in the user directory unstaged.
2012-06-10 23:38:48 -04:00
David Baumgold 3e3b4c918c Send error messages to stderr instead of stdout 2012-01-25 11:52:08 -05:00
Kenneth Reitz 22ac367284 Added git-undo for removing recent commits. 2010-08-27 23:22:26 -07:00