1. 10 1月, 2018 3 次提交
  2. 18 3月, 2017 1 次提交
  3. 21 1月, 2017 4 次提交
    • P
      git gui: allow for a long recentrepo list · 746df946
      Philip Oakley 提交于
      The gui.recentrepo list may be longer than the maxrecent setting.
      Allow extra space to show any extra entries.
      
      In an ideal world, the git gui would limit the number of entries
      to the maxrecent setting, however the recentrepo config list may
      have been extended outwith the gui, or the maxrecent setting changed
      to a reduced value. Further, when testing the gui's recentrepo
      logic it is useful to show these extra, but valid, entries.
      Signed-off-by: NPhilip Oakley <philipoakley@iee.org>
      746df946
    • P
      git gui: de-dup selected repo from recentrepo history · e670fce1
      Philip Oakley 提交于
      When the gui/user selects a repo for display, that repo is brought to
      the end of the recentrepo config list. The logic can fail if there are
      duplicate old entries for the repo (you cannot unset a single config
      entry when duplicates are present).
      
      Similarly, the maxrecentrepo logic could fail if older duplicate entries
      are present.
      
      The first commit of this series ({this}~2) fixed the config unsetting
      issue. Rather than manipulating a local copy of the $recent list (one
      cannot know how many entries were removed), simply re-read it.
      
      We must also catch the error when the attempt to remove the second copy
      from the re-read list is performed.
      Signed-off-by: NPhilip Oakley <philipoakley@iee.org>
      e670fce1
    • P
      git gui: cope with duplicates in _get_recentrepo · 3202c68e
      Philip Oakley 提交于
      _get_recentrepo will fail if duplicate invalid entries are present
      in the recentrepo config list. The previous commit fixed the
      'git config' limitations in _unset_recentrepo by unsetting all config
      entries, however this code would fail on the second attempt to unset it.
      
      Refactor the code to pre-sort and de-duplicate the recentrepo list to
      avoid a potential second unset attempt.
      Signed-off-by: NPhilip Oakley <philipoakley@iee.org>
      3202c68e
    • P
      git-gui: remove duplicate entries from .gitconfig's gui.recentrepo · 2c1b06df
      Philip Oakley 提交于
      The git gui's recent repo list may become contaminated with duplicate
      entries. The git gui would barf when attempting to remove one entry.
      Remove them all - there is no option within 'git config' to selectively
      remove one of the entries.
      
      This issue was reported on the 'Git User' list
      (https://groups.google.com/forum/#!topic/git-users/msev4KsQGFc,
      Warning: gui.recentrepo has multiply values while executing).
      
      And also by zosrothko as a Git-for-Windows issue
      https://github.com/git-for-windows/git/issues/1014.
      
      On startup the gui checks that entries in the recentrepo list are still
      valid repos and deletes thoses that are not. If duplicate entries are
      present the 'git config --unset' will barf and this prevents the gui
      from starting.
      
      Subsequent patches fix other parts of recentrepo logic used for syncing
      internal lists with the external .gitconfig.
      Reported-by: NAlexey Astakhov <asstv7@gmail.com>
      Signed-off-by: NPhilip Oakley <philipoakley@iee.org>
      2c1b06df
  4. 20 10月, 2016 6 次提交
  5. 07 10月, 2016 1 次提交
    • P
      git-gui: avoid persisting modified author identity · cfe616bc
      Pat Thoyts 提交于
      Commit 7e71adc7 fixes a problem with git-gui failing to pick up the
      original author identity during a commit --amend operation. However, the
      new author details then become persistent for the remainder of the session.
      This commit fixes this by ensuring the environment variables are reset
      and the author information reset once the commit is completed.
      The relevant changes were reworked to reduce global variables.
      Signed-off-by: NPat Thoyts <patthoyts@users.sourceforge.net>
      cfe616bc
  6. 06 10月, 2016 2 次提交
  7. 05 10月, 2016 3 次提交
  8. 04 10月, 2016 16 次提交
  9. 03 10月, 2016 2 次提交
  10. 02 10月, 2016 2 次提交