1. 20 10月, 2010 1 次提交
    • P
      git-gui: correct assignment of work-tree · 38ec8d3e
      Pat Thoyts 提交于
      git-gui currently uses its own logic to determine the work-tree setting
      but 'git rev-parse --toplevel' directly returns git's work-tree value
      by calling get_git_work_tree() and is therefore always correct.
      
      This fixes an inability to handle some repository configurations. In
      particular where .git is a file containing a path to the real directory
      (a cross-platform symbolic link).
      To continue to support older versions than 1.7.0, setting the work-tree
      by normalizing the --show-cdup value is more reliable as git-dir might be
      outside the work-tree entirely.
      Signed-off-by: NPat Thoyts <patthoyts@users.sourceforge.net>
      38ec8d3e
  2. 08 10月, 2010 1 次提交
    • P
      git-gui: generic version trimming · 67112c48
      Pat Thoyts 提交于
      Rather than attempting to trim off all the non-version number suffixes
      from the 'git version' result, let us scan along from the beginning until
      we find a non-numeric part and stop there. Any such dot-version number will
      be compatible with the Tcl package version comparison command which is the
      aim of this code.
      Signed-off-by: NPat Thoyts <patthoyts@users.sourceforge.net>
      67112c48
  3. 06 10月, 2010 2 次提交
  4. 05 10月, 2010 1 次提交
    • S
      On Windows, avoid git-gui to call Cygwin's nice utility · ff9db6c7
      Sebastian Schuberth 提交于
      It's a common case for Windows developers to have both Cygwin and msysGit
      installed. Unfortunately, some scenarios also require to have Cygwin in PATH.
      By default, Cygwin comes with nice.exe, while msysGit does not. Since git-gui
      calls nice if it is in PATH, this results in Cygwin's nice.exe being called
      from msysGit's git-gui. Mixing Cygwin and msysGit generally is not a good idea,
      and in this particular case it causes differences not being correctly detected.
      So we only call nice.exe on Windows if it is in the same directory as git.exe.
      This way, this work-around does neither affect a pure Cygwin environment, or
      the case when nice.exe will be shipped with msysGit at some point in time.
      
      This fixes msysGit issue 394.
      Signed-off-by: NSebastian Schuberth <sschuberth@gmail.com>
      Signed-off-by: NPat Thoyts <patthoyts@users.sourceforge.net>
      ff9db6c7
  5. 14 9月, 2010 1 次提交
  6. 13 8月, 2010 2 次提交
  7. 08 8月, 2010 2 次提交
  8. 02 8月, 2010 2 次提交
  9. 30 7月, 2010 2 次提交
  10. 11 7月, 2010 1 次提交
  11. 08 2月, 2010 1 次提交
  12. 29 1月, 2010 2 次提交
  13. 28 1月, 2010 1 次提交
    • P
      git-gui: use themed tk widgets with Tk 8.5 · c80d7be5
      Pat Thoyts 提交于
      This patch enables the use of themed Tk widgets with Tk 8.5 and above.
      These make a significant difference on Windows in making the
      application appear native. On Windows and MacOSX ttk defaults to the
      native look as much as possible. On X11 the user may select a theme
      using the TkTheme XRDB resource class by adding an line to the
      .Xresources file. The set of installed theme names is available using
      the Tk command 'ttk::themes'. The default on X11 is similar to the current
      un-themed style - a kind of thin bordered motif look.
      
      A new git config variable 'gui.usettk' may be set to disable this if
      the user prefers the classic Tk look. Using Tk 8.4 will also avoid the
      use of themed widgets as these are only available since 8.5.
      
      Some support is included for Tk 8.6 features (themed spinbox and native
      font chooser for MacOSX and Windows).
      Signed-off-by: NPat Thoyts <patthoyts@users.sourceforge.net>
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      c80d7be5
  14. 25 1月, 2010 2 次提交
  15. 24 1月, 2010 8 次提交
    • G
      git-gui: set GIT_DIR and GIT_WORK_TREE after setup · a9fa11fe
      Giuseppe Bilotta 提交于
      Rather than juggling with the env var GIT_DIR around the invocation of
      gitk, set it and GIT_WORK_TREE after finishing setup, ensuring that any
      external tool works with the setup we're running with.
      
      This also allows us to remove a couple of conditionals when running gitk
      or git gui in a submodule, as we know that the variables are present and
      have to be unset and reset before and after the invocation.
      Signed-off-by: NGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      a9fa11fe
    • G
      git-gui: handle bare repos correctly · 29e5573d
      Giuseppe Bilotta 提交于
      Refactor checking for a bare repository into its own proc, that relies
      on git rev-parse --is-bare-repository if possible. For older versions of
      git we fall back to a logic such that the repository is considered bare
      if:
       * either the core.bare setting is true
       * or the worktree is not set and the directory name ends with .git
      The error message for the case of an unhandled bare repository is also
      updated to reflect the fact that the problem is not the funny name but
      the bareness.
      
      The new refactored proc is also used to disable the menu entry to
      explore the working copy, and to skip changing to the worktree before
      the gitk invocation.
      Signed-off-by: NGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      29e5573d
    • G
      git-gui: handle non-standard worktree locations · 21985a11
      Giuseppe Bilotta 提交于
      Don't rely on the git worktree being the updir of the gitdir, since it
      might not be. Instead, define (and use) a new _gitworktree global
      variable, setting it to $GIT_WORK_TREE if present, falling back to
      core.worktree if defined, and finally to whatever we guess the correct
      worktree is. Getting core.worktree requires the config from the alleged
      git dir _gitdir to be loaded early.
      
      Supporting non-standard worktree locations also breaks the git-gui
      assumption (made when calling gitk) that the worktree was the dirname of
      $_gitdir and that, by consequence, the git dir could be set to the tail
      of $_gitdir once we changed to the worktree root directory. Therefore,
      we need to export a GIT_DIR environment variable set to the full,
      normalized path of $_gitdir instead. We also skip changing to the worktree
      directory if it's empty (i.e. if we're working on a bare repository).
      Signed-off-by: NGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      21985a11
    • J
      git-gui: Support applying a range of changes at once · ff07c3b6
      Jeff Epler 提交于
      Multiple lines can be selected in the diff viewer and applied all
      at once, rather than selecting "Stage Line For Commit" on each
      individual line.
      Signed-off-by: NJeff Epler <jepler@unpythonic.net>
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      ff07c3b6
    • J
      git-gui: Add a special diff popup menu for submodules · 25476c63
      Jens Lehmann 提交于
      To make it easier for users to deal with submodules, a special diff
      popup menu has been added for submodules. The "Show Less Context"
      and "Show More Context" entries have been removed, as they don't make
      any sense for a submodule summary. Four new entries are added to the
      top of the popup menu to gain access to more detailed information
      about the changes in a submodule than the plain summary does offer.
      
      These are:
      - "Visualize These Changes In The Submodule"
        starts gitk showing the selected commit range
      
      - "Visualize These Changes In The Submodule"
        starts gitk showing the whole submodule history of the current branch
      
      - "Visualize All Branch History In The Submodule"
        starts gitk --all in the submodule
      
      - "Start git gui In The Submodule"
        guess what :-)
      Signed-off-by: NJens Lehmann <Jens.Lehmann@web.de>
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      25476c63
    • G
      git-gui: work from the .git dir · 87cd09f4
      Giuseppe Bilotta 提交于
      When git-gui is run from a .git dir, _gitdir would be set to "." by
      rev-parse, something that confuses the worktree detection.
      
      Fix by expanding the value of _gitdir to pwd in this special case.
      Signed-off-by: NGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      87cd09f4
    • J
      git-gui: Correct file_states when unstaging partly staged entry · 7ec2b69f
      Jens Lehmann 提交于
      When unstaging a partly staged file or submodule, the file_states
      list was not updated properly (unless unstaged linewise). Its
      index_info part did not contain the former head_info as it should
      have but kept its old value.
      
      This seems not to have had any bad effects but diminishes the value
      of the file_states list for future enhancements.
      Signed-off-by: NJens Lehmann <Jens.Lehmann@web.de>
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      7ec2b69f
    • P
      git-gui: Fix gitk for branch whose name matches local file · e27d106e
      Peter Krefting 提交于
      When trying to run gitk on a branch name whose name matches a local
      file, it will toss an error saying that the name is ambiguous. Adding
      a pair of dashes will make gitk parse the options to the left of
      it as branch names. Since wish eats the first pair of dashes we
      throw at it, we need to add a second one to ensure they get through.
      Signed-off-by: NPeter Krefting <peter@softwolves.pp.se>
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      e27d106e
  16. 07 1月, 2010 1 次提交
  17. 07 12月, 2009 1 次提交
  18. 28 10月, 2009 1 次提交
  19. 26 9月, 2009 1 次提交
  20. 13 9月, 2009 1 次提交
  21. 12 8月, 2009 1 次提交
  22. 10 8月, 2009 1 次提交
  23. 02 5月, 2009 1 次提交
  24. 08 4月, 2009 2 次提交
  25. 06 4月, 2009 1 次提交
    • M
      git-gui (Win): make "Explore Working Copy" more robust · 454efb47
      Markus Heidelberg 提交于
      Starting the Explorer from the git-gui menu "Explore Working Copy"
      didn't work, when git-gui was started via Windows Explorer shell
      extension (Git GUI Here) from a directory within the project.
      The Explorer raised an error message like this:
      
          Path "C:/somedir/worktree" is not available or not a directory
      
      It worked when started from the project directory itself, because then
      the path argument for the Explorer was just '.' (current directory)
      without any problematic forward slashes.
      
      To make it work, convert the path given as argument to explorer.exe to
      its native format with backslashes.
      Signed-off-by: NMarkus Heidelberg <markus.heidelberg@web.de>
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      454efb47