jreybert / vimagit

Ease your git workflow within Vim
1.31k stars 49 forks source link

strange commit message #107

Closed alok closed 7 years ago

alok commented 8 years ago

I'm using latest version of next and I hit CC and it prefills the commit message Bulk Update. None of my commit messages for that repo have that message. I'm really confused here as to why that's being added. Is it a vimagit feature that I'm unaware of?

alok commented 8 years ago

It adds that line over and over every time I do an action like refreshing the buffer. Here's a gist of profiling that shows which functions are called.

jreybert commented 8 years ago

I don't know from were this message could be from...

Could you please:

alok commented 8 years ago

git version 2.7.0.25.gfc10eb5 NVIM v0.2.0-104-g5f02608

Nothing comes up with grep, even under case-insensitive search.

jreybert commented 7 years ago

Did you try with vim -U none, and load only vimagit to check if there a side effect from another plugin or a setting in your vimrc?

If you can determinate that only vimagit is in fault, could you please try to dump some debug traces? in vimagit buffer, type this:

:set verbosefile=/tmp/vimagit.log
:XXverbose call magit#update_buffer()

Try with XX from 1 to 20, and stop when you encounter Bulk Update in verbose file.

jreybert commented 7 years ago

@Alok do you still encounter this problem?

alok commented 7 years ago

Sometimes, but I'm never able to reproduce it consistently, so I've basically given up on it.

jreybert commented 7 years ago

Next time you encouter it, please try this:

:set verbosefile=/tmp/vimagit.log
:XXverbose call magit#update_buffer()
jreybert commented 7 years ago

One more thing: when you say you can't reproduce it, do you mean that if it appears a first time, if you go out commit and retry CC, it does not appear again?

ramok commented 7 years ago

Step for reproduce:

  1. Stage some hunk
  2. CC start writing commit message
  3. Press '?' in command mode to show help. Help will rewrite commit message
  4. Press '?' again. In commit message I get left
       amend) with message written in this section

    ==============

  5. Pressing '?' again and again add two lines every time

    ==============

jreybert commented 7 years ago

@ramok, the bug you are describing looks like #110 . It has been fixed in last release 1.7.0. Which vimagit version are you using? (SHA1)

ramok commented 7 years ago

My bad. It's was old verision. After update everything fine. Thanks