Re: [PATCH 2/2] stash: prefer --quiet over shell redirection

2014-08-31 Thread David Aguilar
On Sat, Aug 30, 2014 at 11:07:13PM +0200, Johannes Sixt wrote: > Am 30.08.2014 21:30, schrieb David Aguilar: > > @@ -392,12 +392,12 @@ parse_flags_and_rev() > > ;; > > esac > > > > - REV=$(git rev-parse --quiet --symbolic --verify "$1" 2>/dev/null) || { > > + REV=$(git rev-par

Re: [PATCH 2/2] stash: prefer --quiet over shell redirection

2014-08-30 Thread Johannes Sixt
Am 30.08.2014 21:30, schrieb David Aguilar: > Use `git rev-parse --quiet` instead of redirecting to /dev/null. > > Signed-off-by: David Aguilar > --- > git-stash.sh | 14 +++--- > 1 file changed, 7 insertions(+), 7 deletions(-) > > diff --git a/git-stash.sh b/git-stash.sh > index bcc757

[PATCH 2/2] stash: prefer --quiet over shell redirection

2014-08-30 Thread David Aguilar
Use `git rev-parse --quiet` instead of redirecting to /dev/null. Signed-off-by: David Aguilar --- git-stash.sh | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/git-stash.sh b/git-stash.sh index bcc757b..5a5185b 100755 --- a/git-stash.sh +++ b/git-stash.sh @@ -50