From 64255e2b0162f50807bdece1a1e4ccc3edffe17b Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Sun, 8 Apr 2007 00:07:02 +0200 Subject: [PATCH] Provide a tree summary after git-p4 rebase --- git-p4 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/git-p4 b/git-p4 index aa85800..170af90 100755 --- a/git-p4 +++ b/git-p4 @@ -974,7 +974,7 @@ class P4Sync(Command): if len(changes) == 0: if not self.silent: print "no changes to import!" - sys.exit(1) + return True cnt = 1 for change in changes: @@ -1053,7 +1053,9 @@ class P4Rebase(Command): sync = P4Sync() sync.run([]) print "Rebasing the current branch" + oldHead = os.popen("git rev-parse HEAD").read()[:-1] system("git rebase p4") + system("git diff-tree --stat --summary -M %s HEAD" % oldHead) return True class HelpFormatter(optparse.IndentedHelpFormatter): -- 2.11.4.GIT