From 5072939384526d91150bd55364775dd700820607 Mon Sep 17 00:00:00 2001 From: Marius Vollmer Date: Sat, 16 Aug 2008 21:59:30 +0300 Subject: [PATCH] * magit.el (magit-update-status): Bring back Unpushed commit. --- magit.el | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/magit.el b/magit.el index f1020618..4c718ef0 100644 --- a/magit.el +++ b/magit.el @@ -469,10 +469,11 @@ pushed. (magit-insert-section 'staged "Staged changes:" 'magit-wash-diff "git" "diff" "--cached") - (magit-insert-section 'unpushed - "Recent commits:" 'magit-wash-log - "git" "log" "--graph" "--max-count=10" - "--pretty=oneline")) + (if remote + (magit-insert-section 'unpushed + "Unpushed commits:" 'magit-wash-log + "git" "log" "--graph" "--pretty=oneline" + (format "%s/%s..HEAD" remote branch)))) (magit-goto-line old-line) (magit-goto-section old-section)) (magit-refresh-marks-in-buffer buf)))