author | Shawn O. Pearce <spearce@spearce.org> | |
Wed, 25 Jul 2007 08:20:02 +0000 (04:20 -0400) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Wed, 25 Jul 2007 08:23:20 +0000 (04:23 -0400) | ||
commit | becafaace69980d2980802432e86e7873317a4b6 | |
tree | 09bf0a2a6960d9e2a0ab70fa6493950835c177c5 | tree | snapshot |
parent | 844c3f6fe9d4d2bdc4e76f6a3bf3dfe86ce8c544 | commit | diff |
git-gui: Show ref last update times in revision chooser tooltips
If we can we now show the last modification date of a loose ref as
part of the tooltip information shown in the revision picker. This
gives the user an indication of when was the last time that the ref
was modified locally, and may especially be of interest when looking
at a tracking branch.
If we cannot find the loose ref file than we try to fallback on the
reflog and scan it for the date of the last record. We don't start
with the reflog however as scanning it backwards from the end is not
an easy thing to do in Tcl. So I'm being lazy here and just going
through the entire file, line by line. Since that is less efficient
than a single stat system call, its our fallback strategy.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
If we can we now show the last modification date of a loose ref as
part of the tooltip information shown in the revision picker. This
gives the user an indication of when was the last time that the ref
was modified locally, and may especially be of interest when looking
at a tracking branch.
If we cannot find the loose ref file than we try to fallback on the
reflog and scan it for the date of the last record. We don't start
with the reflog however as scanning it backwards from the end is not
an easy thing to do in Tcl. So I'm being lazy here and just going
through the entire file, line by line. Since that is less efficient
than a single stat system call, its our fallback strategy.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
lib/choose_rev.tcl | diff | blob | history |