From: Andreas Ericsson Date: Thu, 30 Nov 2006 11:28:28 +0000 (+0100) Subject: ls-files: Give hints when errors happen. X-Git-Tag: v1.5.0-rc0~177 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/ced7b828fadbf3d6de49d75392f1516b4ceb4491?hp=ced7b828fadbf3d6de49d75392f1516b4ceb4491 ls-files: Give hints when errors happen. Without this patch "git commit file.c file2.c" produces the not so stellar output: error: pathspec 'file.c' did not match any. error: pathspec 'file2.c' did not match any. With this patch, the output is changed to: error: pathspec 'file.c' did not match any file(s) known to git. error: pathspec 'file2.c' did not match any file(s) known to git. Did you forget to 'git add'? Signed-off-by: Andreas Ericsson Signed-off-by: Junio C Hamano ---