1. 28 6月, 2009 3 次提交
  2. 07 6月, 2009 4 次提交
    • J
      26c117d0
    • J
      Merge branch 'maint' · 3ff7e178
      Junio C Hamano 提交于
      * maint:
        Documentation: refer to gitworkflows(7) from tutorial and git(1)
        daemon: Strictly parse the "extra arg" part of the command
      3ff7e178
    • T
      Documentation: refer to gitworkflows(7) from tutorial and git(1) · 801a011d
      Thomas Rast 提交于
      Add references to the gitworkflows(7) manpage added in f948dd89
      (Documentation: add manpage about workflows, 2008-10-19) to both
      gittutorial(1) and git(1), so that new users might actually discover
      and read it.
      
      Noticed by Randal L. Schwartz.
      Signed-off-by: NThomas Rast <trast@student.ethz.ch>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      801a011d
    • S
      daemon: Strictly parse the "extra arg" part of the command · 73bb33a9
      Shawn O. Pearce 提交于
      Since 1.4.4.5 (49ba83fb "Add virtualization support to git-daemon")
      git daemon enters an infinite loop and never terminates if a client
      hides any extra arguments in the initial request line which is not
      exactly "\0host=blah\0".
      
      Since that change, a client must never insert additional extra
      arguments, or attempt to use any argument other than "host=", as
      any daemon will get stuck parsing the request line and will never
      complete the request.
      
      Since the client can't tell if the daemon is patched or not, it
      is not possible to know if additional extra args might actually be
      able to be safely requested.
      
      If we ever need to extend the git daemon protocol to support a new
      feature, we may have to do something like this to the exchange:
      
        # If both support git:// v2
        #
        C: 000cgit://v2
        S: 0010ok host user
        C: 0018host git.kernel.org
        C: 0027git-upload-pack /pub/linux-2.6.git
        S: ...git-upload-pack header...
      
        # If client supports git:// v2, server does not:
        #
        C: 000cgit://v2
        S: <EOF>
      
        C: 003bgit-upload-pack /pub/linux-2.6.git\0host=git.kernel.org\0
        S: ...git-upload-pack header...
      
      This requires the client to create two TCP connections to talk to
      an older git daemon, however all daemons since the introduction of
      daemon.c will safely reject the unknown "git://v2" command request,
      so the client can quite easily determine the server supports an
      older protocol.
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      73bb33a9
  3. 04 6月, 2009 5 次提交
  4. 03 6月, 2009 5 次提交
    • J
      Merge branch 'da/pretty-tempname' · b11cf090
      Junio C Hamano 提交于
      * da/pretty-tempname:
        diff: generate pretty filenames in prep_temp_blob()
        compat: add a basename() compatibility function
        compat: add a mkstemps() compatibility function
      
      Conflicts:
      	Makefile
      b11cf090
    • L
      Clean up and simplify rev_compare_tree() · ceff8e7a
      Linus Torvalds 提交于
      This simplifies the logic of rev_compare_tree() by removing a special
      case.
      
      It does so by turning the special case of finding a diff to be "all new
      files" into a more generic case of "all new" vs "all removed" vs "mixed
      changes", so now the code is actually more powerful and more generic, and
      the added symmetry actually makes it simpler too.
      
      This makes no changes to any existing behavior, but apart from the
      simplification it does make it possible to some day care about whether all
      changes were just deletions if we want to. Which we may well want to for
      merge handling.
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      ceff8e7a
    • J
      Merge branch 'maint' · 433e972a
      Junio C Hamano 提交于
      * maint:
        blame: correctly handle a path that used to be a directory
        add -i: do not dump patch during application
        Update draft release notes for 1.6.3.2
        grep: fix colouring of matches with zero length
        Documentation: teach stash/pop workflow instead of stash/apply
        Change xdl_merge to generate output even for null merges
        t6023: merge-file fails to output anything for a degenerate merge
      433e972a
    • J
      blame: correctly handle a path that used to be a directory · a9b2d424
      Junio C Hamano 提交于
      When trying to see if the same path exists in the parent, we ran
      "diff-tree" with pathspec set to the path we are interested in with the
      parent, and expect either to have exactly one resulting filepair (either
      "changed from the parent", "created when there was none") or nothing (when
      there is no change from the parent).
      
      If the path used to be a directory, however, we will also see unbounded
      number of entries that talk about the files that used to exist underneath
      the directory in question.  Correctly pick only the entry that describes
      the path we are interested in in such a case (namely, the creation of the
      path as a regular file).
      
      Noticed by Ben Willard.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      a9b2d424
    • T
      add -i: do not dump patch during application · 8dc3a47c
      Thomas Rast 提交于
      Remove a debugging print that snuck in at 7a26e653 (Revert
      "git-add--interactive: remove hunk coalescing", 2009-05-16).
      Signed-off-by: NThomas Rast <trast@student.ethz.ch>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      8dc3a47c
  5. 02 6月, 2009 10 次提交
  6. 01 6月, 2009 13 次提交
    • S
      git-show-branch.txt: document --date-order option · b3f298ab
      Stephen Boyd 提交于
      Copy the description of date-order from rev-list-options.txt, and then
      reword it to be commit specific. While we're at it, put <rev> <glob>...
      on a new line to not exceed 80 characters.
      Signed-off-by: NStephen Boyd <bebarino@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      b3f298ab
    • D
      diff: generate pretty filenames in prep_temp_blob() · 003b33a8
      David Aguilar 提交于
      Naturally, prep_temp_blob() did not care about filenames.
      As a result, GIT_EXTERNAL_DIFF and textconv generated
      filenames such as ".diff_XXXXXX".
      
      This modifies prep_temp_blob() to generate user-friendly
      filenames when creating temporary files.
      
      Diffing "name.ext" now generates "XXXXXX_name.ext".
      Signed-off-by: NDavid Aguilar <davvid@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      003b33a8
    • D
      compat: add a basename() compatibility function · e1c06886
      David Aguilar 提交于
      Some systems such as Windows lack libgen.h so provide a
      basename() implementation for cross-platform use.
      
      This introduces the NO_LIBGEN_H construct to the Makefile
      and autoconf scripts.
      Signed-off-by: NDavid Aguilar <davvid@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      e1c06886
    • D
      compat: add a mkstemps() compatibility function · 0620b39b
      David Aguilar 提交于
      mkstemps() is a BSD extension so provide an implementation
      for cross-platform use.
      Signed-off-by: NDavid Aguilar <davvid@gmail.com>
      Tested-by: Johannes Sixt <j6t@kdbg.org> (Windows)
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      0620b39b
    • J
      Merge branch 'sb/opt-filename' · f9275c68
      Junio C Hamano 提交于
      * sb/opt-filename:
        parse-opts: add OPT_FILENAME and transition builtins
        parse-opts: prepare for OPT_FILENAME
      
      Conflicts:
      	builtin-log.c
      f9275c68
    • J
      Merge branch 'jc/solaris-0811' · 714cdcd0
      Junio C Hamano 提交于
      * jc/solaris-0811:
        OpenSolaris 200811 (SunOS 5.11) does not want OLD_ICONV
        Teach Solaris that _XOPEN_SOURCE=600 really menas XPG6
      714cdcd0
    • J
      Merge branch 'sb/show-branch-parse-options' · c6e73936
      Junio C Hamano 提交于
      * sb/show-branch-parse-options:
        show-branch: migrate to parse-options API
        parse-options: add PARSE_OPT_LITERAL_ARGHELP for complicated argh's
      
      Conflicts:
      	parse-options.h
      c6e73936
    • J
      Merge branch 'mm/apply-double-slash' · 919cc4d0
      Junio C Hamano 提交于
      * mm/apply-double-slash:
        apply: handle filenames with double slashes better
      919cc4d0
    • J
      Merge branch 'sb/format-patch-parseopt' · 1af4731b
      Junio C Hamano 提交于
      * sb/format-patch-parseopt:
        format-patch: migrate to parse-options API
      
      Conflicts:
      	builtin-log.c
      1af4731b
    • J
      Merge branch 'jc/mktree' · 128b0c08
      Junio C Hamano 提交于
      * jc/mktree:
        mktree: validate entry type in input
        mktree --batch: build more than one tree object
        mktree --missing: updated usage message and man page
        mktree --missing: allow missing objects
        t1010: add mktree test
        mktree: do not barf on a submodule commit
        builtin-mktree.c: use a helper function to handle one line of input
        mktree: use parse-options
        build-in git-mktree
      128b0c08
    • J
      Merge branch 'ew/svn-test-and-old-i18n' · 22cdab5b
      Junio C Hamano 提交于
      * ew/svn-test-and-old-i18n:
        t8005: fix typo, it's ISO-8859-5, not KOI8-R
        t8005: convert CP1251 character set to ISO8859-5
        t8005: use more portable character encoding names
        t5100: use ancient encoding syntax for backwards compatibility
        t9301: use ISO8859-1 rather than ISO-8859-1
        t3901: Use ISO8859-1 instead of ISO-8859-1 for backward compatibility
        t3901: avoid negation on right hand side of '|'
        builtin-mailinfo.c: use "ISO8859-1" instead of "latin1" as fallback encoding
        builtin-mailinfo.c: compare character encodings case insensitively
        Use 'UTF-8' rather than 'utf-8' everywhere for backward compatibility
        t3900: use ancient iconv names for backward compatibility
      22cdab5b
    • J
      Merge branch 'mw/send-email' · 06676213
      Junio C Hamano 提交于
      * mw/send-email:
        send-email: Remove superfluous `my $editor = ...'
        send-email: 'References:' should only reference what is sent
        send-email: Handle "GIT:" rather than "GIT: " during --compose
        Docs: send-email: --smtp-server-port can take symbolic ports
        Docs: send-email: Refer to CONFIGURATION section for sendemail.multiedit
        Docs: send-email: Put options back into alphabetical order
      06676213
    • J
      Merge branch 'cc/bisect' (early part) · 1136e2c6
      Junio C Hamano 提交于
      * 'cc/bisect' (early part):
        bisect: check ancestors without forking a "git rev-list" process
        commit: add function to unparse a commit and its parents
        bisect: rework some rev related functions to make them more reusable
      1136e2c6