Merge pull request #171 from wfxr/FixFishGitAdd

Fix for: ga preview not working with fish
This commit is contained in:
Chris Apple 2021-12-05 15:03:26 -08:00 committed by GitHub
commit 4bea935fff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -95,9 +95,9 @@ function forgit::add -d "git add selector"
set extract_file "
sed 's/^[[:space:]]*//' | # remove leading whitespace
cut -d ' ' -f 2- | # cut the line after the M or ??, this leaves just the filename
sed 's/.* -> //' | # for rename case
sed -e 's/^\\\"//' -e 's/\\\"\$//' # removes surrounding quotes
sed 's/.* -> //' # for rename case
"
set preview "
set file (echo {} | $extract_file)
# exit