1. 14 6月, 2009 2 次提交
    • M
      builtin-remote: Make "remote -v" display push urls · 4a4b4cda
      Michael J Gruber 提交于
      Currently, "remote -v" simply lists all urls so that one has to remember
      that only the first one is used for fetches, and all are used for
      pushes.
      
      Change this so that the role of an url is displayed in parentheses, and
      also display push urls.
      
      Example with "one" having one url, "two" two urls, "three" one url and
      one pushurl:
      
      one     hostone.com:/somepath/repoone.git (fetch)
      one     hostone.com:/somepath/repoone.git (push)
      three   http://hostthree.com/otherpath/repothree.git (fetch)
      three   hostthree.com:/pathforpushes/repothree.git (push)
      two     hosttwo.com:/somepath/repotwo.git (fetch)
      two     hosttwo.com:/somepath/repotwo.git (push)
      two     hosttwobackup.com:/somewheresafe/repotwo.git (push)
      Signed-off-by: NMichael J Gruber <git@drmicha.warpmail.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      4a4b4cda
    • M
      builtin-remote: Show push urls as well · 857f8c30
      Michael J Gruber 提交于
      Teach builtin remote to show push urls also when asked to
      "show" a specific remote.
      
      This improves upon the standard display mode: multiple specified "url"s
      mean that the first one is for fetching, all are used for pushing. We
      make this clearer now by displaying the first one prefixed with "Fetch
      URL", and all "url"s (or, if present, all "pushurl"s) prefixed with
      "Push  URL".
      
      Example with "one" having one url, "two" two urls, "three" one url and
      one pushurl (URL part only):
      
      * remote one
        Fetch URL: hostone.com:/somepath/repoone.git
        Push  URL: hostone.com:/somepath/repoone.git
      * remote two
        Fetch URL: hosttwo.com:/somepath/repotwo.git
        Push  URL: hosttwo.com:/somepath/repotwo.git
        Push  URL: hosttwobackup.com:/somewheresafe/repotwo.git
      * remote three
        Fetch URL: http://hostthree.com/otherpath/repothree.git
        Push  URL: hostthree.com:/pathforpushes/repothree.git
      
      Also, adjust t5505 accordingly and make it test for the new output.
      Signed-off-by: NMichael J Gruber <git@drmicha.warpmail.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      857f8c30
  2. 10 6月, 2009 3 次提交
  3. 09 6月, 2009 11 次提交
  4. 08 6月, 2009 1 次提交
  5. 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
  6. 04 6月, 2009 5 次提交
  7. 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
  8. 02 6月, 2009 9 次提交