Code

Porcelain scripts: Rewrite cryptic "needs update" error message
authorRamkumar Ramachandra <artagnon@gmail.com>
Tue, 19 Oct 2010 14:39:28 +0000 (20:09 +0530)
committerJunio C Hamano <gitster@pobox.com>
Thu, 28 Oct 2010 20:28:44 +0000 (13:28 -0700)
commit92c62a3f4f93432c0c82e3031a9e64e03ba290f7
treea17cf82fbe26678b12ab794ab6aeddfb5948fd9b
parentca209065f3cc3462eb0ae6090f6b13f38aa2114c
Porcelain scripts: Rewrite cryptic "needs update" error message

Although Git interally has the facility to differentiate between
porcelain and plubmbing commands and appropriately print errors,
several shell scripts invoke plubming commands triggering cryptic
plumbing errors to be displayed on a porcelain interface. This patch
replaces the "needs update" message in git-pull and git-rebase, when
`git update-index` is run, with a more friendly message.

Reported-by: Joshua Jensen <jjensen@workspacewhiz.com>
Reported-by: Thore Husfeldt <thore.husfeldt@gmail.com>
Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-pull.sh
git-rebase--interactive.sh
git-rebase.sh
git-sh-setup.sh