Re: about rev-parse's quietness

2015-10-15 Thread Junio C Hamano
writes: > Let's see: > $ git rev-parse --verify --quiet master@{xyz} || echo No > No > > $ git rev-parse --verify --quiet master@{u} || echo No > fatal: no upstream configured for branch 'master' > No Yup, that is unfortunate. The above two pass different codepaths in sha1_name.c::get_sha1_basi

about rev-parse's quietness

2015-10-15 Thread stefan.naewe
Hello there. I'm using a bash function that does a combination of 'ls -l', 'git status', and 'git branch' to give me a quick overview of where I stand in the current git repo. I planned to extend that function to also list the to-be-pushed commits in the current branch, something like $ git lo