[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] feature/gnus-select 9fabadf 179/218: Add new command vc-gi
From: |
Andrew G Cohen |
Subject: |
[Emacs-diffs] feature/gnus-select 9fabadf 179/218: Add new command vc-git-stash-delete |
Date: |
Fri, 14 Dec 2018 03:35:38 -0500 (EST) |
branch: feature/gnus-select
commit 9fabadf800852b79826732265a03921e4a0a85fb
Author: Charles A. Roelli <address@hidden>
Commit: Andrew G Cohen <address@hidden>
Add new command vc-git-stash-delete
* lisp/vc/vc-git.el (vc-git-stash-delete): New command, in line with
vc-git-stash-delete-at-point.
(vc-git-extra-menu-map): Add menu entry.
---
lisp/vc/vc-git.el | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/lisp/vc/vc-git.el b/lisp/vc/vc-git.el
index bf1b050..88052d7 100644
--- a/lisp/vc/vc-git.el
+++ b/lisp/vc/vc-git.el
@@ -1388,6 +1388,9 @@ This requires git 1.8.4 or later, for the \"-L\" option
of \"git log\"."
(define-key map [git-grep]
'(menu-item "Git grep..." vc-git-grep
:help "Run the `git grep' command"))
+ (define-key map [git-ds]
+ '(menu-item "Delete Stash..." vc-git-stash-delete
+ :help "Delete a stash"))
(define-key map [git-sn]
'(menu-item "Stash a Snapshot" vc-git-stash-snapshot
:help "Stash the current state of the tree and keep the
current state"))
@@ -1518,6 +1521,12 @@ This command shares argument histories with \\[rgrep]
and \\[grep]."
(vc-git-command "*vc-git-stash*" 0 nil "stash" "pop" "-q" name)
(vc-resynch-buffer (vc-git-root default-directory) t t))
+(defun vc-git-stash-delete (name)
+ "Delete stash NAME."
+ (interactive (list (vc-git-stash-read "Delete stash: ")))
+ (vc-git-command "*vc-git-stash*" 0 nil "stash" "drop" "-q" name)
+ (vc-resynch-buffer (vc-git-root default-directory) t t))
+
(defun vc-git-stash-snapshot ()
"Create a stash with the current tree state."
(interactive)
- [Emacs-diffs] feature/gnus-select 246460c 155/218: Add tests for Bug#30408, (continued)
- [Emacs-diffs] feature/gnus-select 246460c 155/218: Add tests for Bug#30408, Andrew G Cohen, 2018/12/14
- [Emacs-diffs] feature/gnus-select d219c99 143/218: Autoupdate from Gnulib, Andrew G Cohen, 2018/12/14
- [Emacs-diffs] feature/gnus-select b6d216c 169/218: Tag tramp-test39-utf8* as :unstable, Andrew G Cohen, 2018/12/14
- [Emacs-diffs] feature/gnus-select b74e19e 159/218: * lisp/play/fortune.el (fortune-in-buffer): Revert previous nonsense., Andrew G Cohen, 2018/12/14
- [Emacs-diffs] feature/gnus-select e3bcd11 160/218: Port data-tests-popcnt to 32-bit Emacs, Andrew G Cohen, 2018/12/14
- [Emacs-diffs] feature/gnus-select 19ed176 149/218: Improvements in dired.texi, Andrew G Cohen, 2018/12/14
- [Emacs-diffs] feature/gnus-select 5f36db7 167/218: Improve warning and error messages, Andrew G Cohen, 2018/12/14
- [Emacs-diffs] feature/gnus-select 0bf81e2 174/218: ; Fix last commit in tramp.el, Andrew G Cohen, 2018/12/14
- [Emacs-diffs] feature/gnus-select 219d6cf 180/218: * doc/lispref/anti.texi (Antinews): Fix grammar., Andrew G Cohen, 2018/12/14
- [Emacs-diffs] feature/gnus-select 7f60bfe 175/218: Port emacs-module-tests to 32-bit Emacs, Andrew G Cohen, 2018/12/14
- [Emacs-diffs] feature/gnus-select 9fabadf 179/218: Add new command vc-git-stash-delete,
Andrew G Cohen <=
- [Emacs-diffs] feature/gnus-select 3ff0a07 182/218: Try and fix the more obvious sources of bug#30635, Andrew G Cohen, 2018/12/14
- [Emacs-diffs] feature/gnus-select 4a80595 192/218: Fix too-large integer in Hg backend, Andrew G Cohen, 2018/12/14
- [Emacs-diffs] feature/gnus-select 992a8ec 187/218: * src/lisp.h (struct Lisp_Buffer_Local_Value): Update commentary., Andrew G Cohen, 2018/12/14
- [Emacs-diffs] feature/gnus-select 17a41a9 191/218: Avoid Fortran-style floating-point optimization, Andrew G Cohen, 2018/12/14
- [Emacs-diffs] feature/gnus-select 6eddea6 193/218: * src/process.c (Fsignal_process): Simplify., Andrew G Cohen, 2018/12/14
- [Emacs-diffs] feature/gnus-select 80ab319 204/218: Remove some unused gnus-registry variables, Andrew G Cohen, 2018/12/14
- [Emacs-diffs] feature/gnus-select 905bb9c 206/218: * lisp/emulation/viper.el (viper-set-hooks): Replace obsolete func., Andrew G Cohen, 2018/12/14
- [Emacs-diffs] feature/gnus-select 2f67ad3 208/218: Optimize certain memq forms during byte-compilation., Andrew G Cohen, 2018/12/14
- [Emacs-diffs] feature/gnus-select bc2d36a 197/218: Remove some declare-function stub definitions, Andrew G Cohen, 2018/12/14
- [Emacs-diffs] feature/gnus-select 39699c8 212/218: Remove architecture dependent source downloads, Andrew G Cohen, 2018/12/14