At Wed, 24 Mar 2010 20:17:17 +0200,
Hannu Koivisto wrote:
> 
> Hi,
> 
> I recently took the latest changes in the mainline/master into use
> and I now see short SHA1s in log and other commit lists such as
> unpushed commits.

For the time being you can use this to turn them off:

  (defun my-magit-present-log-line (graph sha1 refs message)
    "The default log line generator."
    (let* ((ref-re "\\(?:tag: \\)?refs/\\(tags\\|remotes\\|heads\\)/\\(.+\\)")
           (string-refs
            (when refs
              (concat (mapconcat
                       (lambda (r)
                         (propertize
                          (if (string-match ref-re r)
                              (match-string 2 r)
                            r)
                          'face (cond
                                 ((string= (match-string 1 r) "remotes")
                                  'magit-log-head-label-remote)
                                 ((string= (match-string 1 r) "tags")
                                  'magit-log-head-label-tags)
                                 ((string= (match-string 1 r) "heads")
                                  'magit-log-head-label-local))))
                       refs
                       " ")
                      " "))))
      (concat
       (propertize graph 'face 'magit-log-graph)
       string-refs
       (when message
         (propertize message 'face 'magit-log-message)))))
  
  (setq magit-present-log-line-function
        'my-magit-present-log-line)

There would be no harm in making it optional (default on, imo) in the
default function though. Would this make people happy?

Cheers,
Phil

To unsubscribe from this group, send email to magit+unsubscribegooglegroups.com 
or reply to this email with the words "REMOVE ME" as the subject.

Reply via email to