mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 09:14:18 +00:00
; vc-git-checkin, vc-hg-checkin: Delete unused lexical variable.
This commit is contained in:
parent
6227a0412d
commit
83da45ddd0
2 changed files with 2 additions and 4 deletions
|
|
@ -1144,8 +1144,7 @@ It is based on `log-edit-mode', and has Git-specific extensions."
|
|||
(defalias 'vc-git-async-checkins #'always)
|
||||
|
||||
(defun vc-git-checkin (files comment &optional _rev)
|
||||
(let* ((parent (current-buffer))
|
||||
(file1 (or (car files) default-directory))
|
||||
(let* ((file1 (or (car files) default-directory))
|
||||
(root (vc-git-root file1))
|
||||
(default-directory (expand-file-name root))
|
||||
(only (or (cdr files)
|
||||
|
|
|
|||
|
|
@ -1219,8 +1219,7 @@ It is based on `log-edit-mode', and has Hg-specific extensions.")
|
|||
(defun vc-hg-checkin (files comment &optional _rev)
|
||||
"Hg-specific version of `vc-backend-checkin'.
|
||||
REV is ignored."
|
||||
(let ((parent (current-buffer))
|
||||
(args (nconc (list "commit" "-m")
|
||||
(let ((args (nconc (list "commit" "-m")
|
||||
(vc-hg--extract-headers comment))))
|
||||
(if vc-async-checkin
|
||||
(let ((buffer (vc-hg--async-buffer)))
|
||||
|
|
|
|||
Loading…
Reference in a new issue