lambdalisue / vim-gina

👣 Asynchronously control git repositories in Neovim/Vim 8
http://www.vim.org/scripts/script.php?script_id=5531
MIT License
689 stars 27 forks source link

Can the empty line be removed? #293

Closed Freed-Wu closed 2 years ago

Freed-Wu commented 2 years ago

Such as

On branch master

No commits yet

Changes to be committed: (use "git rm --cached `<file>`{=html}..." to unstage)

new file: .gitignore 
new file: LICENSE 
new file: README.md 
new file: overview.md 
new file: research.md

The last line is an empty line. How can it be removed?

lambdalisue commented 2 years ago

I'm sorry but I don't get what is this issue.

Freed-Wu commented 2 years ago

E.g.,

1 On branch master
2
3 No commits yet
4
5 Changes to be committed:
6   (use "git rm --cached <file>..." to unstage)
7   new file:   .gitignore
8   new file:   LICENSE
9   new file:   README.md
10   new file:   overview.md
11   new file:   refs/main.bib
12   new file:   research.md
13
14 Changes not staged for commit:
15   (use "git add <file>..." to update what will be committed)
16   (use "git restore <file>..." to discard changes in working directory)
17   modified:   overview.md
18
19 Untracked files:
20   (use "git add <file>..." to include in what will be committed)
21   a.md
22   ref.md
23

Line 23 is an empty line. Can it be removed?

Thanks!

Freed-Wu commented 2 years ago

Oh, the output of :Gina is the output of git status. It also has an empty line at last. So the problem comes from not gina but git status. Is it right?