summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
bce79a6)
Signed-off-by: Gustav Hållberg <gustav@virtutech.com>
Signed-off-by: Karl Hasselström <kha@treskal.com>
"Delete the patches in PATCHSYMS.
Interactively, delete the marked patches, or the patch at point."
(interactive (list (stgit-patches-marked-or-at-point)))
"Delete the patches in PATCHSYMS.
Interactively, delete the marked patches, or the patch at point."
(interactive (list (stgit-patches-marked-or-at-point)))
+ (unless patchsyms
+ (error "No patches to delete"))
(let ((npatches (length patchsyms)))
(let ((npatches (length patchsyms)))
- (if (zerop npatches)
- (error "No patches to delete")
- (when (yes-or-no-p (format "Really delete %d patch%s? "
- npatches
- (if (= 1 npatches) "" "es")))
- (stgit-capture-output nil
- (apply 'stgit-run "delete" patchsyms))
- (stgit-reload)))))
+ (when (yes-or-no-p (format "Really delete %d patch%s? "
+ npatches
+ (if (= 1 npatches) "" "es")))
+ (stgit-capture-output nil
+ (apply 'stgit-run "delete" patchsyms))
+ (stgit-reload))))
(defun stgit-coalesce (patchsyms)
"Coalesce the patches in PATCHSYMS.
(defun stgit-coalesce (patchsyms)
"Coalesce the patches in PATCHSYMS.