1. 10 12月, 2005 3 次提交
  2. 09 12月, 2005 21 次提交
  3. 08 12月, 2005 8 次提交
  4. 07 12月, 2005 7 次提交
    • P
      gitk: Work around Tcl's non-standard names for encodings · fd8ccbec
      Paul Mackerras 提交于
      This uses a table of encoding names and aliases distilled from
      http://www.iana.org/assignments/character-sets plus some heuristics
      to convert standard encoding names to ones that Tcl recognizes.
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      fd8ccbec
    • J
      update-index: allow --index-info to add higher stages. · d23748a6
      Junio C Hamano 提交于
      The new merge world order tells the merge strategies to leave
      the cache unmerged and store the automerge result in the working
      tree if automerge is not clean.  This was done for the resolve
      strategy and recursive strategy when no rename is involved, but
      recording a conflicting merge in the rename case could not
      easily be done by the recursive strategy.
      
      This commit adds a new input format, in addition to the exsting
      two, to "update-index --index-info".
      
          (1) mode         SP sha1          TAB path
          The first format is what "git-apply --index-info"
          reports, and used to reconstruct a partial tree
          that is used for phony merge base tree when falling
          back on 3-way merge.
      
          (2) mode SP type SP sha1          TAB path
          The second format is to stuff git-ls-tree output
          into the index file.
      
          (3) mode         SP sha1 SP stage TAB path
          This format is to put higher order stages into the
          index file and matches git-ls-files --stage output.
      
      To place a higher stage entry to the index, the path should
      first be removed by feeding a mode=0 entry for the path, and
      then feeding necessary input lines in the (3) format.
      
      For example, starting with this index:
      
      $ git ls-files -s
      100644 8a1218a1024a212bb3db30becd860315f9f3ac52 0       frotz
      
      $ git update-index --index-info ;# interactive session -- input follows...
      
      0 0000000000000000000000000000000000000000	frotz
      100644 8a1218a1024a212bb3db30becd860315f9f3ac52 1	frotz
      100755 8a1218a1024a212bb3db30becd860315f9f3ac52 2	frotz
      
      The first line of the input feeds 0 as the mode to remove the
      path; the SHA1 does not matter as long as it is well formatted.
      Then the second and third line feeds stage 1 and stage 2 entries
      for that path.  After the above, we would end up with this:
      
      $ git ls-files -s
      100644 8a1218a1024a212bb3db30becd860315f9f3ac52 1	frotz
      100755 8a1218a1024a212bb3db30becd860315f9f3ac52 2	frotz
      
      This completes the groundwork for the new merge world order.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      d23748a6
    • J
      git-merge-one: new merge world order. · b539c5e8
      Junio C Hamano 提交于
      This does two things:
      
       - Use new --stage=2 option to create the working tree file with
         leading paths and correct permission bits using
         checkout-index, as before.
      
       - Make sure we do not confuse "merge" program when the file
         being merged has an unfortunate name, '-L'.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      b539c5e8
    • J
      checkout-index: allow checking out from higher stages. · 3bd348ae
      Junio C Hamano 提交于
      The new option, --stage=<n>, lets you copy out from an unmerged,
      higher stage.  This is to help the new merge world order during
      a nontrivial merge.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      3bd348ae
    • J
      Use printf rather than echo -n. · 9754563c
      Jason Riedy 提交于
      On AIX, there is no -n option to the system's echo.  Instead,
      it needs the '\c' control character.  We could replace
        echo -n "foo"
      with
        echo -e "foo\c"
      but printf is recommended by most man pages.  Tested on AIX
      5.3, Solaris 8, and Debian.
      
      [jc: futureproofed two instances that uses variable with '%s'
       so later feeding different messages would not break things too
       easily; others are emitting literal so whoever changes the
       literal ought to notice more easily so they are safe.]
      Signed-off-by: NE. Jason Riedy <ejr@cs.berkeley.edu>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      9754563c
    • J
      qsort() ptrdiff_t may be larger than int · e23eff8b
      Junio C Hamano 提交于
      Morten Welinder <mwelinder@gmail.com> writes:
      
      > The code looks wrong.  It assumes that pointers are no larger than ints.
      > If pointers are larger than ints, the code does not necessarily compute
      > a consistent ordering and qsort is allowed to do whatever it wants.
      >
      > Morten
      >
      > static int compare_object_pointers(const void *a, const void *b)
      > {
      > 	const struct object * const *pa = a;
      > 	const struct object * const *pb = b;
      > 	return *pa - *pb;
      > }
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      e23eff8b
    • J
      [PATCH] Initial AIX portability fixes. · a6da9395
      Jason Riedy 提交于
      Added an AIX clause in the Makefile; that clause likely
      will be wrong for any AIX pre-5.2, but I can only test
      on 5.3.  mailinfo.c was missing the compat header file,
      and convert-objects.c needs to define a specific
      _XOPEN_SOURCE as well as _XOPEN_SOURCE_EXTENDED.
      Signed-off-by: NE. Jason Riedy <ejr@cs.berkeley.edu>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      a6da9395
  5. 06 12月, 2005 1 次提交
    • J
      git-merge-one-file: resurrect leading path creation. · be61db92
      Junio C Hamano 提交于
      Since we do not use git-update-index followed by
      git-checkout-index -u to create the half-merged file on
      conflicting case anymore, we need to make sure the leading
      directories are created here.
      
      Maybe a better solution would be to allow update-index to add to
      higher stage, and checkout-index to extract from such, but that
      is a change slightly bigger than I would like to have so close
      to 1.0, so this should do for now.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      be61db92