question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Prevent `git diff` split after GitCommit

See original GitHub issue

Problems summary

Not problem. But I’d like to disable :!git -C diff --cached split after GitCommit.

Expected

I thought it works as expected if I delete below Git diff, however it still pops up.

https://github.com/yuki-ycino/fzf-preview.vim/blob/b002392ed02b7d3157801b417219165139b77a39/autoload/fzf_preview/remote/consumer/git.vim#L42-L45

Environment Information

  • fzf-preview version (package.json):0.4.27

  • OS:MacOS

  • Vim/Neovim version:v0.4.4

Provide a minimal init.vim

call plug#begin(s:plugdir)
	Plug 'tpope/vim-fugitive'
	Plug 'neoclide/coc.nvim', {'do': 'yarn install --frozen-lockfile'}

	Plug 'yuki-ycino/fzf-preview.vim', { 'branch': 'release', 'do': ':UpdateRemotePlugins' }
call plug#end()
  1. CocCommand fzf-preview.GitStatus
  2. Add -> Commit

Screenshot

ss 1

Dockerfile that reproduces the problem (if possible)

none

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
yuki-yanocommented, Dec 26, 2020

Thanks. I’ll look into it and consider modifying that policy.

0reactions
ulwlucommented, Dec 27, 2020

Oh what a fast and great response! Thank you very much! I love this plugin more and more!

@yuki-ycino

Read more comments on GitHub >

github_iconTop Results From Across the Web

git-diff Documentation - Git
If a line exists in both the source and destination, exists only once, and starts with this text, this algorithm attempts to prevent...
Read more >
How do I prevent 'git diff' from using a pager? - Stack Overflow
--no-pager to Git will tell it to not use a pager. Passing the option -F to less will tell it to not page...
Read more >
Git Diff | Atlassian Git Tutorial
Git diff is a multi-use Git command that when executed runs a diff function on Git data sources. Learn about git diff and...
Read more >
What is Git Diff Command in Git and How does it work?
Diff command is used in git to track the difference between the changes made on a file. Since Git is a version control...
Read more >
Commits are snapshots, not diffs - The GitHub Blog
After we investigate this model, we'll explore how this new perspective helps us understand commands like git cherry-pick and git rebase .
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found