Re: [RFC PATCH] completion: support excluding refs

2016-08-24 Thread Junio C Hamano
Chris Packham writes: > Allow completion of refs with a ^ prefix. This allows completion of > commands like 'git log HEAD ^origin/master'. > ... > + [[ "$cur" == ^* ]] && pfx="^" > for i in HEAD FETCH_HEAD ORIG_HEAD MERGE_HEAD; do > -

[RFC PATCH] completion: support excluding refs

2016-08-24 Thread Chris Packham
Allow completion of refs with a ^ prefix. This allows completion of commands like 'git log HEAD ^origin/master'. Signed-off-by: Chris Packham --- I often find myself using variations of 'git log HEAD ^origin/master' to see commits that I have locally that have not been pushed. It is also useful w