[prev in list] [next in list] [prev in thread] [next in thread]
List: git
Subject: [PATCH] Improved error message from git-rebase
From: =?us-ascii?Q?=3D=3Futf-8=3Fq=3FDavid=5FK=3DC3=3DA5gedal=3F=3D?=
Date: 2007-01-31 16:12:03
Message-ID: 873b5r2mya.fsf () morpheus ! local
[Download RAW message or body]
If the index wasn't clean, git-rebase would simply show the output from
git-diff-index with no further comment to the user.
---
git-rebase.sh | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
git-rebase sometimes fails without giving a useful error message. Try
this:
$ touch asdf
$ git add asdf
$ git rebase origin/master
A asdf
$
diff --git a/git-rebase.sh b/git-rebase.sh
index 99cedad..9d2f71d 100755
--- a/git-rebase.sh
+++ b/git-rebase.sh
@@ -249,7 +249,8 @@ fi
git-update-index --refresh || exit
diff=$(git-diff-index --cached --name-status -r HEAD)
case "$diff" in
-?*) echo "$diff"
+?*) echo "cannot rebase: your index is not up-to-date"
+ echo "$diff"
exit 1
;;
esac
--
1.5.0.rc2.86.gf4f4f-dirty
--
David Kågedal
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic