From 4dd592c32389d7de574afc6f5ed173c5d8de7362 Mon Sep 17 00:00:00 2001 From: Steven Walter Date: Fri, 15 Aug 2008 23:18:39 -0400 Subject: [PATCH] cmd_log and cmd_show: go through the resolve_rev interface --- yap/yap.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/yap/yap.py b/yap/yap.py index c7947ff..7a340a4 100644 --- a/yap/yap.py +++ b/yap/yap.py @@ -594,6 +594,7 @@ starting at HEAD. "[-p] [-r ] ..." self._check_git() rev = flags.get('-r', 'HEAD') + rev = self._resolve_rev(rev) if '-p' in flags: flags['-p'] = '-p' @@ -869,6 +870,7 @@ the commit's author, log message, and a diff of the changes are shown. def cmd_show(self, commit="HEAD"): "[commit]" self._check_git() + commit = self._resolve_rev(commit) os.system("git show '%s'" % commit) @short_help("apply the changes in a given commit to the current branch") -- 2.11.4.GIT