diff options
author | Shawn O. Pearce <spearce@spearce.org> | 2007-07-25 04:20:02 -0400 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2007-07-25 04:23:20 -0400 |
commit | becafaace69980d2980802432e86e7873317a4b6 (patch) | |
tree | 09bf0a2a6960d9e2a0ab70fa6493950835c177c5 /git-gui.sh | |
parent | git-gui: Display commit/tag/remote info in tooltip of revision picker (diff) | |
download | tgif-becafaace69980d2980802432e86e7873317a4b6.tar.xz |
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>
Diffstat (limited to 'git-gui.sh')
0 files changed, 0 insertions, 0 deletions