1. 10 Aug, 2021 1 commit
  2. 22 Jun, 2021 1 commit
    • Jerome Reybert's avatar
      Fix very slow update when large submodule · 421ecc94
      Jerome Reybert authored
      Until now, vimagit relied on `git submodule status` to get the list of
      submodule. As we just want a list of the submodule, and not their
      status, this is oversized.
      
      Having linux as a submodule, `git submodule status` can take more than 10
      seconds.
      
      This new method is very fast.
      421ecc94
  3. 18 Nov, 2020 1 commit
    • Paul Walker's avatar
      check_repo() can't use 'count' for a variable name. · aaf1278f
      Paul Walker authored
      Even though it's not prefixed with v:, Vim still regards it as attempting to
      overwrite it's internal (read-only) variable count.
      
      This is probably only hit when trying to use Vimagit to commit items to a
      freshly init'ed repo, so most people wouldn't encounter it.
      aaf1278f
  4. 12 Jan, 2020 2 commits
  5. 24 Jul, 2019 3 commits
    • Jerome Reybert's avatar
      Use --no-prefix to generate diff · 94762b13
      Jerome Reybert authored
      It fixes the issue #176 and the PR #177.
      
      PR #177 was almost fine. The idea of the PR was to force src and dst
      prefix. The problem was that, to generate patch for new files, we diff
      the new file against /dev/null. git does not like prefix for out of
      repository files.
      
      The simple fix is to always force --no-prefix. To make it work, git
      apply must use -p0 option: this option tells that there is no prefix in
      the src dst files paths.
      94762b13
    • Jerome Reybert's avatar
      e892fb65
    • Wade Carpenter's avatar
      Always specify diff prefix to avoid diff.noprefix errors · 973d5382
      Wade Carpenter authored
      Fix for Issue #176 where the user has configured diff.noprefix=True and
      ends up hitting an error when calling `git apply`.
      
      Both `git diff` and `git show` are affected by the diff.noprefix
      setting, and since each relies on there being a single-directory prefix
      component to the filenames, make this explicit in the respective git
      command calls.
      
      To this end, always use --src-prefix=a/ and --dst-prefix=b/.  The actual
      values are arbitrary and are just later stripped internally.
      973d5382
  6. 21 Feb, 2019 1 commit
    • Jerome Reybert's avatar
      Set scrolloff in magit buffer · 6a66b2f8
      Jerome Reybert authored
      By default, scrolloff is set to 3. Can be overwritten with
      g:magit_scrolloff.
      Until recent vim patch 8.1.0864, scrolloff is a global only option. Must
      play with autocommand BufEnter/BufExit to mimic a local scrolloff
      behavior.
      
      ref #172
      6a66b2f8
  7. 29 Nov, 2018 1 commit
  8. 12 Oct, 2018 2 commits
    • Jerome Reybert's avatar
      make magit#utils#start_profile usable · b3345ef8
      Jerome Reybert authored
      previous setting should work, but in practive, log file are almost
      empty.
      Now, we will face very big log files, but with (hopefully) intersting
      traces.
      b3345ef8
    • Jerome Reybert's avatar
      fix stuck while refresh fix #170 #36 · 39b9aa63
      Jerome Reybert authored
      On first refresh, vimagit can be stuck during several seconds.
      foldmethod=syntax seems to be the culprit.
      
      Longer explanation:
      
      Remove folding while we are updating the buffer. writing to the buffer
      while the folding is enabled can be veryyyyy slow.
      One last strange thing is that, the first time the buffer is written, it
      is not slow at all. It is slow the second time, at first refresh (can be
      order of seconds). Then at third time (2nd refresh), it is fast again.
      39b9aa63
  9. 09 Oct, 2018 2 commits
  10. 08 Oct, 2018 2 commits
  11. 04 Oct, 2018 1 commit
  12. 03 Oct, 2018 3 commits
    • Jerome Reybert's avatar
      Fix another escaping issue, with a global escape method ref #168 · cf6b4f90
      Jerome Reybert authored
      Another issue with escape problem. It was finally the same culprit.
      
      match() function take a pattern as a paramter. If a:selection[0], the
      hunk title, contains any regex special character, it goes wild.
      
      It seems safer to escape with special character \V (very nomagic)
      instead of adding regularly special characters to escape() function.
      cf6b4f90
    • Jerome Reybert's avatar
      16d9775d
    • Jerome Reybert's avatar
      tild character must be escaped in hunk title ref #156 · 8e1beef8
      Jerome Reybert authored
      vimagit may want to search hunk position, based on hunk title.
      When a hunk title has a '~' in it, the character make the search crash.
      It must be escaped.
      
      Finnally, after almost one year of open issue and several issue
      contributors, I got it, thanks to akrejczinger and its docker image.
      
      The reason I was unable to reproduce this issue is maybe that all the
      vim and nvim version I used were built with another regex engine.
      8e1beef8
  13. 14 Apr, 2018 1 commit
  14. 16 Mar, 2018 1 commit
  15. 05 Feb, 2018 1 commit
    • Jerome Reybert's avatar
      Merge branch 'next' · 621eb2d2
      Jerome Reybert authored
      * next:
        Jump to source is now line precise
        Auto-close magit buffer/window on clean state
        system wrappers now throw exception in case of error
      621eb2d2
  16. 21 Jan, 2018 1 commit
  17. 23 Nov, 2017 1 commit
  18. 20 Nov, 2017 1 commit
    • Jerome Reybert's avatar
      Add magit#get_current_mode API function · 44a3d2ee
      Jerome Reybert authored
      It returns a string of the current vimagit mode.
      It is used for example by vim-airline vimagit extension. It seems a good
      idea that vimagit itself returns the string.
      
      See vim-airline/vim-airline#1602
      44a3d2ee
  19. 07 Nov, 2017 1 commit
  20. 06 Nov, 2017 3 commits
    • Jerome Reybert's avatar
      Merge branch 'next' · 14be6c15
      Jerome Reybert authored
      * next:
        fix visual selection mappings
        fix <C-n> issue with mapping_wrapper()
        update and reformat docs for mappings
        limit some mapping to work only within some sections
        move folding wrapper function into magit/mapping.vim
        move helper functions in autoload/helper.vim
        only set autocmd once for write command checking
        cut info lines to remove tail spaces
        do not use printf("%S"), not supported by vim 7.3
        forward travis status to gitter
      14be6c15
    • Jerome Reybert's avatar
      Auto-close magit buffer/window on clean state · 54a428a6
      Jerome Reybert authored
      Option is by default false
      
      fix #132
      54a428a6
    • Jerome Reybert's avatar
      Remove vselect limitation from documentation · e13de42d
      Jerome Reybert authored
      this limitation was fixed by #32
      fixes #151
      e13de42d
  21. 31 Oct, 2017 2 commits
    • Jerome Reybert's avatar
      system wrappers now throw exception in case of error · 8a54c764
      Jerome Reybert authored
      rename functions:
      	magit#utils#system -> magit#sys#system
      	magit#utils#systemlist -> magit#sys#systemlist
      
      exception thrown is 'shell_error'.
      
      new functions, which do not throw an exception in case of error:
      	magit#utils#system_noraise
      	magit#utils#systemlist_noraise
      8a54c764
    • Jerome Reybert's avatar
      fix visual selection mappings · 644752e0
      Jerome Reybert authored
      bug highlighted by issue #148
      
      It shows that I must find another test framework than vader, which
      allows feedkeys
      644752e0
  22. 24 Oct, 2017 1 commit
  23. 02 Oct, 2017 6 commits
  24. 29 Sep, 2017 1 commit