You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fish's handling of ^ still annoying to git users #1873
The '^' was the first syntax I used. I didn't understand why it wasn't working.
After experimenting with the options some more, I finally found my clue from the following error message from git:
"fatal: ambiguous argument 'staging': both revision and filename"
Fish was redirecting the stderr to a file with the name of my branch and so git was showing me just the log of the first branch instead of showing the difference.
Not sure if anything can/should be done about it, but thought I would report it anyway.
Also note that the same syntax is used in the rev-list command as mentioned by @aeosynth at #81 (comment)
That a^b, a ^b, a^ b and a ^ b will be different? I think not. You can use A~<n> (i.e. A^^^ is equal to A~3) in simple cases. In more complex cases it's better to use commit hash.
Activity
ridiculousfish commentedon Jan 2, 2015
Any ideas here are appreciated.
hauleth commentedon Jan 7, 2015
Instead of
^you can use~. The only solution I see is to create builtin that will disable some special chars, but IMHO it will be über complicated.lmsurpre commentedon Jan 7, 2015
Or maybe "^" could only redirect when it is a standalone token?
hauleth commentedon Jan 7, 2015
IMHO shell should use context free grammar
Łukasz Jan Niemier
Dnia 7 sty 2015 o godz. 15:31 lmsurpre [email protected] napisał(a):
ridiculousfish commentedon Jan 7, 2015
An example of the problematic syntax is
git log ^refA refBhauleth commentedon Jan 7, 2015
That
a^b,a ^b,a^ banda ^ bwill be different? I think not. You can useA~<n>(i.e.A^^^is equal toA~3) in simple cases. In more complex cases it's better to use commit hash.rocketraman commentedon May 7, 2016
From the recently referenced duplicate issue which is a slightly different input than previously discussed here:
If the hash value contains non-numeric values, the command works fine:
ridiculousfish commentedon May 8, 2016
This seems like a regression relative to #81
ridiculousfish commentedon Jun 12, 2016
Now a number followed by a caret is never a redirection. Thanks for reporting this!