aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond2010-04-09 10:17:52 -0400
committerEric S. Raymond2010-04-09 10:17:52 -0400
commitf6d90772166c3d59614cfc273fe766c579970a4a (patch)
tree1629002c15347a6c2121daaab7dad7c0a1871e65
parent21d2848427a4a522c39f94a6d605b87045ab74df (diff)
downloademacs-f6d90772166c3d59614cfc273fe766c579970a4a.tar.gz
emacs-f6d90772166c3d59614cfc273fe766c579970a4a.zip
Improve documentation comments.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/vc-git.el9
-rw-r--r--lisp/vc-hooks.el3
3 files changed, 15 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index ba042245fd6..029db96d3ab 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12010-04-09 Eric Raymond <esr@snark.thyrsus.com>
2
3 * vc-hooks.el, vc-git.el: Improve documentation comments.
4
12010-04-08 Stefan Monnier <monnier@iro.umontreal.ca> 52010-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
2 6
3 Fix some of the problems in defsubst* (bug#5728). 7 Fix some of the problems in defsubst* (bug#5728).
diff --git a/lisp/vc-git.el b/lisp/vc-git.el
index 9283e5dcfcf..c1ca48a5b78 100644
--- a/lisp/vc-git.el
+++ b/lisp/vc-git.el
@@ -171,7 +171,14 @@ If nil, use the value of `vc-diff-switches'. If t, use no switches."
171 171
172(defun vc-git-state (file) 172(defun vc-git-state (file)
173 "Git-specific version of `vc-state'." 173 "Git-specific version of `vc-state'."
174 ;; FIXME: This can't set 'ignored yet 174 ;; FIXME: This can't set 'ignored or 'conflict yet
175 ;; The 'ignored state could be detected with `git ls-files -i -o
176 ;; --exclude-standard` It also can't set 'needs-update or
177 ;; 'needs-merge. The rough equivalent would be that upstream branch
178 ;; for current branch is in fast-forward state i.e. current branch
179 ;; is direct ancestor of corresponding upstream branch, and the file
180 ;; was modified upstream. But we can't check that without a network
181 ;; operation.
175 (if (not (vc-git-registered file)) 182 (if (not (vc-git-registered file))
176 'unregistered 183 'unregistered
177 (vc-git--call nil "add" "--refresh" "--" (file-relative-name file)) 184 (vc-git--call nil "add" "--refresh" "--" (file-relative-name file))
diff --git a/lisp/vc-hooks.el b/lisp/vc-hooks.el
index 51f22791513..eb8b4e015a7 100644
--- a/lisp/vc-hooks.el
+++ b/lisp/vc-hooks.el
@@ -460,6 +460,9 @@ For registered files, the value returned is one of:
460 'edited The working file has been edited by the user. If 460 'edited The working file has been edited by the user. If
461 locking is used for the file, this state means that 461 locking is used for the file, this state means that
462 the current version is locked by the calling user. 462 the current version is locked by the calling user.
463 This status should *not* be reported for files
464 which have a changed mtime but the same content
465 as the repo copy.
463 466
464 USER The current version of the working file is locked by 467 USER The current version of the working file is locked by
465 some other USER (a string). 468 some other USER (a string).