Re: git show doesn't work on file names with square brackets
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Feb 7, 2016, 17:10 UTC
- Message-ID
- <alpine.DEB.2.20.1602071809440.2964@virtualbox>
- In-Reply-To
- <CABCFD40-C1B8-412C-90E3-24147AA6AFA5@jetbrains.com>
Hi Kirill,
On Sun, 7 Feb 2016, Kirill Likhodedov wrote:
Show 6 quoted lines
> > On 06 Feb 2016, at 19:10 , Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote: > > > > git show 'HEAD:bra[ckets].txt' -- > > > > Nice catch! It works for me even without quotes.
Only by chance. Once you have a HEAD:brat.txt file in the current working directory, it will break.
> Anyway, thanks a lot for finding the workaround.
I would not exactly call this a work-around, but a precise way to specify that you are *not* talking about a file.
Ciao, Johannes