1. 08 5月, 2007 1 次提交
    • S
      git-gui: Refactor into multiple files to save my sanity · f522c9b5
      Shawn O. Pearce 提交于
      I'm finding it difficult to work with a 6,000+ line Tcl script
      and not go insane while looking for a particular block of code.
      Since most of the program is organized into different units of
      functionality and not all users will need all units immediately
      on startup we can improve things by splitting procs out into
      multiple files and let auto_load handle things for us.
      
      This should help not only to better organize the source, but
      it may also improve startup times for some users as the Tcl
      parser does not need to read as much script before it can show
      the UI.  In many cases the user can avoid reading at least half
      of git-gui now.
      
      Unfortunately we now need a library directory in our runtime
      location.  This is currently assumed to be $(sharedir)/git-gui/lib
      and its expected that the Makefile invoker will setup some sort of
      reasonable sharedir value for us, or let us assume its going to be
      $(gitexecdir)/../share.
      
      We now also require a tclsh (in TCL_PATH) to just run the Makefile,
      as we use tclsh to generate the tclIndex for our lib directory.  I'm
      hoping this is not an unncessary burden on end-users who are building
      from source.
      
      I haven't really made any functionality changes here, this is just a
      huge migration of code from one file to many smaller files.  All of
      the new changes are to setup the library path and install the library
      files.
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      f522c9b5
  2. 03 5月, 2007 1 次提交
    • S
      git-gui: Track our own embedded values and rebuild when they change · c6a5e403
      Shawn O. Pearce 提交于
      Like core-Git we now track the values that we embed into our shell
      script wrapper, and we "recompile" that wrapper if they are changed.
      This concept was lifted from git.git's Makefile, where a similar
      thing was done by Eygene Ryabinkin.  Too bad it wasn't just done
      here in git-gui from the beginning, as the git.git Makefile support
      for GIT-GUI-VARS was really just because git-gui doesn't do it on
      its own.
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      c6a5e403
  3. 13 3月, 2007 1 次提交
  4. 21 2月, 2007 1 次提交
  5. 21 1月, 2007 2 次提交
    • S
      git-gui: Ensure version number is always current. · f1cee4e6
      Shawn O. Pearce 提交于
      I'm stealing the exact logic used by core Git within its own Makefile to
      setup the version number within scripts and executables.  This way we
      can be sure that the version number is always updated after a commit,
      and that the version number also reflects when it is coming from a dirty
      working directory (and is thus pretty worthless).
      
      I've cleaned up some of the version display code in the about dialog too.
      There were simply too many blank lines in the bottom section where we
      showed the version data.
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      f1cee4e6
    • S
      git-gui: Modified makefile to embed version into git-gui script. · 41bdcda3
      Shawn O. Pearce 提交于
      We want to embed the version of git-gui directly into the script file,
      so that we can display it properly in the about dialog.  Consequently
      I've refactored the Makefile process to act like the one in core git.git
      with regards to shell scripts, allowing git-gui to be constructed by a
      sed replacement performed on git-gui.sh.
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      41bdcda3