diff options
| author | Dan Nicolaescu | 2008-07-07 16:35:48 +0000 |
|---|---|---|
| committer | Dan Nicolaescu | 2008-07-07 16:35:48 +0000 |
| commit | 8c3d7147da1ffa024fce782ad071628d2d932ca0 (patch) | |
| tree | 35a5cdc8088a9972e6d03c6d981d0516d9889d31 | |
| parent | 701d018c5c864b9e9ebdf8be620a0d973c6b8990 (diff) | |
| download | emacs-8c3d7147da1ffa024fce782ad071628d2d932ca0.tar.gz emacs-8c3d7147da1ffa024fce782ad071628d2d932ca0.zip | |
(vc-git--ls-files-state): Remove unused function.
| -rw-r--r-- | lisp/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/vc-git.el | 14 |
2 files changed, 2 insertions, 14 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 165e92246d3..3cda36fecba 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2008-07-07 Dan Nicolaescu <dann@ics.uci.edu> | 1 | 2008-07-07 Dan Nicolaescu <dann@ics.uci.edu> |
| 2 | 2 | ||
| 3 | * vc-git.el (vc-git--ls-files-state): Remove unused function. | ||
| 4 | |||
| 3 | * vc-bzr.el (vc-bzr-after-dir-status): Deal with execute bit changes. | 5 | * vc-bzr.el (vc-bzr-after-dir-status): Deal with execute bit changes. |
| 4 | 6 | ||
| 5 | 2008-07-06 John Paul Wallington <jpw@pobox.com> | 7 | 2008-07-06 John Paul Wallington <jpw@pobox.com> |
diff --git a/lisp/vc-git.el b/lisp/vc-git.el index 079ff5abd47..9f18418425e 100644 --- a/lisp/vc-git.el +++ b/lisp/vc-git.el | |||
| @@ -55,7 +55,6 @@ | |||
| 55 | ;; * checkout-model (files) OK | 55 | ;; * checkout-model (files) OK |
| 56 | ;; - workfile-unchanged-p (file) OK | 56 | ;; - workfile-unchanged-p (file) OK |
| 57 | ;; - mode-line-string (file) OK | 57 | ;; - mode-line-string (file) OK |
| 58 | ;; - prettify-state-info (file) OK | ||
| 59 | ;; STATE-CHANGING FUNCTIONS | 58 | ;; STATE-CHANGING FUNCTIONS |
| 60 | ;; * create-repo () OK | 59 | ;; * create-repo () OK |
| 61 | ;; * register (files &optional rev comment) OK | 60 | ;; * register (files &optional rev comment) OK |
| @@ -166,19 +165,6 @@ | |||
| 166 | (vc-git--state-code (match-string 1 diff)) | 165 | (vc-git--state-code (match-string 1 diff)) |
| 167 | (if (vc-git--empty-db-p) 'added 'up-to-date))))) | 166 | (if (vc-git--empty-db-p) 'added 'up-to-date))))) |
| 168 | 167 | ||
| 169 | (defun vc-git--ls-files-state (state &rest args) | ||
| 170 | "Set state to STATE on all files found with git-ls-files ARGS." | ||
| 171 | (with-temp-buffer | ||
| 172 | (apply 'vc-git-command (current-buffer) nil nil "ls-files" "-z" args) | ||
| 173 | (goto-char (point-min)) | ||
| 174 | (let ((start (point))) | ||
| 175 | (while (search-forward "\0" nil t) | ||
| 176 | (let ((file (expand-file-name | ||
| 177 | (buffer-substring-no-properties start (1- (point)))))) | ||
| 178 | (vc-file-setprop file 'vc-backend (if state 'Git 'none)) | ||
| 179 | (vc-file-setprop file 'vc-state state)) | ||
| 180 | (setq start (point)))))) | ||
| 181 | |||
| 182 | (defun vc-git-working-revision (file) | 168 | (defun vc-git-working-revision (file) |
| 183 | "Git-specific version of `vc-working-revision'." | 169 | "Git-specific version of `vc-working-revision'." |
| 184 | (let ((str (with-output-to-string | 170 | (let ((str (with-output-to-string |