Summary view for the repository located in the working directory and the one linked to the current buffer #2209
-
Sometimes I just want to pop open the summary view and have it show information about the repository in the current working directory and not the one linked to the current buffer. Is there an idiomatic way to achieve that? I am currently using: Here is the warning:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The thing that is changing is the status buffer is moving from command! -bang -bar GCWDStatus
\ if empty(FugitiveExtractGitDir(getcwd())) |
\ echoerr 'Not in a Git repository' |
\ else |
\ exe 'edit<bang>' fnameescape(FugitiveFind(':', FugitiveExtractGitDir(getcwd()))) |
\ endif |
Beta Was this translation helpful? Give feedback.
The thing that is changing is the status buffer is moving from
.git/index
to afugitive://
URL. URLs aren't relative to the current working directory, so there's no drop in replacement. Best you could do is wrap it in a command: