Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
git.el: Use integer instead of character constants in case statement.
author
Alexandre Julliard
<julliard@winehq.org>
Sat, 7 Feb 2009 13:01:26 +0000
(14:01 +0100)
committer
Alexandre Julliard
<julliard@winehq.org>
Sat, 7 Feb 2009 13:01:44 +0000
(14:01 +0100)
This is for compatibility with XEmacs. Reported by Vassili Karpov.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
contrib/emacs/git.el
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
efd49f5
)
diff --git
a/contrib/emacs/git.el
b/contrib/emacs/git.el
index f86c437518938c9ed546ebed25901b97b5596b10..7651a0a8e190dbdf8188202a15174da99b5ac302 100644
(file)
--- a/
contrib/emacs/git.el
+++ b/
contrib/emacs/git.el
@@
-571,29
+571,29
@@
Each entry is a cons of (SHORT-NAME . FULL-NAME)."
(let* ((old-type (lsh (or old-perm 0) -9))
(new-type (lsh (or new-perm 0) -9))
(str (case new-type
(let* ((old-type (lsh (or old-perm 0) -9))
(new-type (lsh (or new-perm 0) -9))
(str (case new-type
- (
?\100
;; file
+ (
64
;; file
(case old-type
(case old-type
- (
?\100
nil)
- (
?\12
0 " (type change symlink -> file)")
- (
?\160
" (type change subproject -> file)")))
- (
?\12
0 ;; symlink
+ (
64
nil)
+ (
8
0 " (type change symlink -> file)")
+ (
112
" (type change subproject -> file)")))
+ (
8
0 ;; symlink
(case old-type
(case old-type
- (
?\100
" (type change file -> symlink)")
- (
?\160
" (type change subproject -> symlink)")
+ (
64
" (type change file -> symlink)")
+ (
112
" (type change subproject -> symlink)")
(t " (symlink)")))
(t " (symlink)")))
- (
?\160
;; subproject
+ (
112
;; subproject
(case old-type
(case old-type
- (
?\100
" (type change file -> subproject)")
- (
?\12
0 " (type change symlink -> subproject)")
+ (
64
" (type change file -> subproject)")
+ (
8
0 " (type change symlink -> subproject)")
(t " (subproject)")))
(t " (subproject)")))
- (
?\110
nil) ;; directory (internal, not a real git state)
- (
?\00
0 ;; deleted or unknown
+ (
72
nil) ;; directory (internal, not a real git state)
+ (0 ;; deleted or unknown
(case old-type
(case old-type
- (
?\12
0 " (symlink)")
- (
?\160
" (subproject)")))
+ (
8
0 " (symlink)")
+ (
112
" (subproject)")))
(t (format " (unknown type %o)" new-type)))))
(cond (str (propertize str 'face 'git-status-face))
(t (format " (unknown type %o)" new-type)))))
(cond (str (propertize str 'face 'git-status-face))
- ((eq new-type
?\110
) "/")
+ ((eq new-type
72
) "/")
(t ""))))
(defun git-rename-as-string (info)
(t ""))))
(defun git-rename-as-string (info)