mirror of
https://github.com/wfxr/forgit.git
synced 2026-09-10 07:16:23 -04:00
Merge pull request #171 from wfxr/FixFishGitAdd
Fix for: ga preview not working with fish
This commit is contained in:
commit
4bea935fff
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue