chiark
/
gitweb
/
~mdw
/
stgit
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
stgit.el: Add optional count argument to stgit-commit
[stgit]
/
contrib
/
stgit.el
diff --git
a/contrib/stgit.el
b/contrib/stgit.el
index 372014f491dcd3f8e0302f51494919ae9f06c491..7c83a9ef18ecc7118e40d391262c3c7ba85c427c 100644
(file)
--- a/
contrib/stgit.el
+++ b/
contrib/stgit.el
@@
-658,16
+658,18
@@
(defun stgit-repair ()
(stgit-run "repair"))
(stgit-reload))
(stgit-run "repair"))
(stgit-reload))
-(defun stgit-commit ()
- "Run stg commit."
- (interactive)
- (stgit-capture-output nil (stgit-run "commit"))
+(defun stgit-commit (count)
+ "Run stg commit on COUNT commits.
+Interactively, the prefix argument is used as COUNT."
+ (interactive "p")
+ (stgit-capture-output nil (stgit-run "commit" "-n" count))
(stgit-reload))
(stgit-reload))
-(defun stgit-uncommit (arg)
- "Run stg uncommit. Numeric arg determines number of patches to uncommit."
+(defun stgit-uncommit (count)
+ "Run stg uncommit on COUNT commits.
+Interactively, the prefix argument is used as COUNT."
(interactive "p")
(interactive "p")
- (stgit-capture-output nil (stgit-run "uncommit" "-n"
arg
))
+ (stgit-capture-output nil (stgit-run "uncommit" "-n"
count
))
(stgit-reload))
(defun stgit-push-next (npatches)
(stgit-reload))
(defun stgit-push-next (npatches)