Skip to contentSkip to conversation

git-rebase: suggest to use git-add instead of git-update-index

PATCH In review Jonas Fonseca 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 git-rebase: suggest to use git-add instead of git-update-index

The command is part of the main porcelain making git-add more appropriate.

---
 git-rebase.sh |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

I don't know if this is good or not, maybe it is a matter of taste, but as a new git user I prefer to use git add.

git-rebase.sh +2 -2
index 61770b5..2aa3a01 100755
@@ -55,7 +55,7 @@ continue_merge () {
 	if test -n "$unmerged"
 	then
 		echo "You still have unmerged paths in your index"
-		echo "did you forget update-index?"
+		echo "did you forget to use git add?"
 		die "$RESOLVEMSG"
 	fi
 
@@ -126,7 +126,7 @@ do
 	--continue)
 		git-diff-files --quiet || {
 			echo "You must edit all merge conflicts and then"
-			echo "mark them as resolved using git update-index"
+			echo "mark them as resolved using git add"
 			exit 1
 		}
 		if test -d "$dotest"
Signature · 4 lines
1.5.2.816.gc5560-dirty

-- 
Jonas Fonseca
#1 lore raw
Quoted 10 lines · Jonas Fonseca

The command is part of the main porcelain making git-add more appropriate.

---
 git-rebase.sh |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

I don't know if this is good or not, maybe it is a matter of taste, but as a new git user I prefer to use git add.

I like it. Thanks.