1. 28 3月, 2008 1 次提交
  2. 14 3月, 2008 1 次提交
  3. 13 3月, 2008 2 次提交
  4. 12 3月, 2008 3 次提交
  5. 06 3月, 2008 2 次提交
  6. 05 3月, 2008 1 次提交
  7. 01 3月, 2008 2 次提交
  8. 29 2月, 2008 1 次提交
    • J
      use build-time SHELL_PATH in test scripts · 7cf7f54a
      Jeff King 提交于
      The top-level Makefile now creates a GIT-BUILD-OPTIONS file
      which stores any options selected by the make process that
      may be of use to further parts of the build process.
      Specifically, we store the SHELL_PATH so that it can be used
      by tests to construct shell scripts on the fly.
      
      The format of the GIT-BUILD-OPTIONS file is Bourne shell,
      and it is sourced by test-lib.sh; all tests can rely on just
      having $SHELL_PATH correctly set in the environment.
      
      The GIT-BUILD-OPTIONS file is written every time the
      toplevel 'make' is invoked. Since the only users right now
      are the test scripts, there's no drawback to updating its
      timestamp. If something build-related depends on this, we
      can do a trick similar to the one used by GIT-CFLAGS.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      7cf7f54a
  9. 26 2月, 2008 2 次提交
  10. 25 2月, 2008 1 次提交
  11. 24 2月, 2008 3 次提交
  12. 22 2月, 2008 2 次提交
    • S
      git-gui: Avoid hardcoded Windows paths in Cygwin package files · df4ec4cf
      Shawn O. Pearce 提交于
      When we are being built by the Cygwin package maintainers we need to
      embed the POSIX path to our library files and not the Windows path.
      Embedding the Windows path means all end-users who install our Cygwin
      package would be required to install Cygwin at the same Windows path
      as the package maintainer had Cygwin installed to.  This requirement
      is simply not user-friendly and may be infeasible for a large number
      of our users.
      
      We now try to auto-detect if the Tcl/Tk binary we will use at runtime
      is capable of translating POSIX paths into Windows paths the same way
      that cygpath does the translations.  If the Tcl/Tk binary gives us the
      same results then it understands the Cygwin path translation process
      and should be able to read our library files from a POSIX path name.
      
      If it does not give us the same answer as cygpath then the Tcl/Tk
      binary might actually be a native Win32 build (one that is not
      linked against Cygwin) and thus requires the native Windows path
      to our library files.  We can assume this is not a Cygwin package
      as the Cygwin maintainers do not currently ship a pure Win32 build
      of Tcl/Tk.
      
      Reported on the git mailing list by Jurko Gospodnetić.
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      df4ec4cf
    • S
      git-gui: Default TCL_PATH to same location as TCLTK_PATH · 651fbba2
      Shawn O. Pearce 提交于
      Most users set TCLTK_PATH to tell git-gui where to find wish, but they
      fail to set TCL_PATH to the same Tcl installation.  We use the non-GUI
      tclsh during builds so headless systems are still able to create an
      index file and create message files without GNU msgfmt.  So it matters
      to us that we find a working TCL_PATH at build time.
      
      If TCL_PATH hasn't been set yet we can take a better guess about what
      tclsh executable to use by replacing 'wish' in the executable path with
      'tclsh'.  We only do this replacement on the filename part of the path,
      just in case the string "wish" appears in the directory paths.  Most of
      the time the tclsh will be installed alongside wish so this replacement
      is a sensible and safe default.
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      651fbba2
  13. 18 2月, 2008 1 次提交
  14. 17 2月, 2008 1 次提交
    • D
      Build in checkout · 782c2d65
      Daniel Barkalow 提交于
      The only differences in behavior should be:
      
       - git checkout -m with non-trivial merging won't print out
         merge-recursive messages (see the change in t7201-co.sh)
      
       - git checkout -- paths... will give a sensible error message if
         HEAD is invalid as a commit.
      
       - some intermediate states which were written to disk in the shell
         version (in particular, index states) are only kept in memory in
         this version, and therefore these can no longer be revealed by
         later write operations becoming impossible.
      
       - when we change branches, we discard MERGE_MSG, SQUASH_MSG, and
         rr-cache/MERGE_RR, like reset always has.
      
      I'm not 100% sure I got the merge recursive setup exactly right; the
      base for a non-trivial merge in the shell code doesn't seem
      theoretically justified to me, but I tried to match it anyway, and the
      tests all pass this way.
      
      Other than these items, the results should be identical to the shell
      version, so far as I can tell.
      
      [jc: squashed lock-file fix from Dscho in]
      Signed-off-by: NDaniel Barkalow <barkalow@iabervon.org>
      Signed-off-by: NJohannes Schindelin <johannes.schindelin@gmx.de>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      782c2d65
  15. 12 2月, 2008 2 次提交
  16. 10 2月, 2008 2 次提交
    • D
      Move create_branch into a library file · e496c003
      Daniel Barkalow 提交于
      You can also create branches, in exactly the same way, with checkout -b.
      
      This introduces branch.{c,h} library files for doing porcelain-level
      operations on branches (such as creating them with their appropriate
      default configuration).
      Signed-off-by: NDaniel Barkalow <barkalow@iabervon.org>
      e496c003
    • D
      Build-in merge-recursive · e1b3a2ca
      Daniel Barkalow 提交于
      This makes write_tree_from_memory(), which writes the active cache as
      a tree and returns the struct tree for it, available to other code. It
      also makes available merge_trees(), which does the internal merge of
      two trees with a known base, and merge_recursive(), which does the
      recursive internal merge of two commits with a list of common
      ancestors.
      
      The first two of these will be used by checkout -m, and the third is
      presumably useful in general, although the implementation of checkout
      -m which entirely matches the behavior of the shell version does not
      use it (since it ignores the difference of ancestry between the old
      branch and the new branch).
      Signed-off-by: NDaniel Barkalow <barkalow@iabervon.org>
      e1b3a2ca
  17. 07 2月, 2008 1 次提交
    • B
      compat: Add simplified merge sort implementation from glibc · 43fe901b
      Brian Downing 提交于
      qsort in Windows 2000 (and various other C libraries) is a Quicksort
      with the usual O(n^2) worst case.  Unfortunately, sorting Git trees
      seems to get very close to that worst case quite often:
      
          $ /git/gitbad runstatus
          # On branch master
          qsort, nmemb = 30842
          done, 237838087 comparisons.
      
      This patch adds a simplified version of the merge sort that is glibc's
      qsort(3).  As a merge sort, this needs a temporary array equal in size
      to the array that is to be sorted, but has a worst-case performance of
      O(n log n).
      
      The complexity that was removed is:
      
      * Doing direct stores for word-size and -aligned data.
      * Falling back to quicksort if the allocation required to perform the
        merge sort would likely push the machine into swap.
      
      Even with these simplifications, this seems to outperform the Windows
      qsort(3) implementation, even in Windows XP (where it is "fixed" and
      doesn't trigger O(n^2) complexity on trees).
      
      [jes: moved into compat/qsort.c, as per Johannes Sixt's suggestion]
      [bcd: removed gcc-ism, thanks to Edgar Toernig.  renamed make variable
            per Junio's comment.]
      Signed-off-by: NBrian Downing <bdowning@lavos.net>
      Signed-off-by: NSteffen Prohaska <prohaska@zib.de>
      Signed-off-by: NJohannes Schindelin <johannes.schindelin@gmx.de>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      43fe901b
  18. 05 2月, 2008 2 次提交
  19. 27 1月, 2008 1 次提交
  20. 25 1月, 2008 2 次提交
  21. 23 1月, 2008 2 次提交
  22. 19 1月, 2008 1 次提交
    • L
      Move sha1_file_to_archive into libgit · 18125644
      Lars Hjemli 提交于
      When the specfile (export-subst) attribute was introduced, it added a
      dependency from archive-{tar|zip}.c to builtin-archive.c. This broke the
      support for archive-operations in libgit.a since builtin-archive.o doesn't
      belong in libgit.a.
      
      This patch moves the functions required by libgit.a from builtin-archive.c
      to the new file archive.c (which becomes part of libgit.a).
      Signed-off-by: NLars Hjemli <hjemli@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      18125644
  23. 18 1月, 2008 3 次提交
  24. 15 1月, 2008 1 次提交
    • J
      Fix git-rerere documentation · 11c57e6a
      Junio C Hamano 提交于
      rerere.enabled is _not_ on by default.  The command is enabled if rr-cache
      exists even when rerere.enabled is missing, and enabled or disabled by
      explicitly setting the rerere.enabled variable.
      11c57e6a