1. 10 9月, 2013 8 次提交
    • J
      Merge branch 'tr/log-full-diff-keep-true-parents' · 4ab4a6df
      Junio C Hamano 提交于
      Output from "git log --full-diff -- <pathspec>" looked strange,
      because comparison was done with the previous ancestor that touched
      the specified <pathspec>, causing the patches for paths outside the
      pathspec to show more than the single commit has changed.
      
      Tweak "git reflog -p" for the same reason using the same mechanism.
      
      * tr/log-full-diff-keep-true-parents:
        log: use true parents for diff when walking reflogs
        log: use true parents for diff even when rewriting
      4ab4a6df
    • J
      Merge branch 'jk/cat-file-batch-optim' · 24703ead
      Junio C Hamano 提交于
      Rework the reverted change to `cat-file --batch-check`.
      
      * jk/cat-file-batch-optim:
        cat-file: only split on whitespace when %(rest) is used
      24703ead
    • J
      Merge branch 'es/blame-L-more' · 118b9d58
      Junio C Hamano 提交于
      More fixes to the code to parse the "-L" option in "log" and "blame".
      
      * es/blame-L-more:
        blame: reject empty ranges -L,+0 and -L,-0
        t8001/t8002: blame: demonstrate acceptance of bogus -L,+0 and -L,-0
        blame: reject empty ranges -LX,+0 and -LX,-0
        t8001/t8002: blame: demonstrate acceptance of bogus -LX,+0 and -LX,-0
        log: fix -L bounds checking bug
        t4211: retire soon-to-be unimplementable tests
        t4211: log: demonstrate -L bounds checking bug
        blame: fix -L bounds checking bug
        t8001/t8002: blame: add empty file & partial-line tests
        t8001/t8002: blame: demonstrate -L bounds checking bug
        t8001/t8002: blame: decompose overly-large test
      118b9d58
    • J
      Merge branch 'db/http-savecookies' · 43012626
      Junio C Hamano 提交于
      * db/http-savecookies:
        t5551: Remove header from curl cookie file
        http: add http.savecookies option to write out HTTP cookies
      43012626
    • J
      Merge branch 'jc/push-cas' · 2233ad45
      Junio C Hamano 提交于
      Allow a safer "rewind of the remote tip" push than blind "--force",
      by requiring that the overwritten remote ref to be unchanged since
      the new history to replace it was prepared.
      
      The machinery is more or less ready.  The "--force" option is again
      the big red button to override any safety, thanks to J6t's sanity
      (the original round allowed --lockref to defeat --force).
      
      The logic to choose the default implemented here is fragile
      (e.g. "git fetch" after seeing a failure will update the
      remote-tracking branch and will make the next "push" pass,
      defeating the safety pretty easily).  It is suitable only for the
      simplest workflows, and it may hurt users more than it helps them.
      
      * jc/push-cas:
        push: teach --force-with-lease to smart-http transport
        send-pack: fix parsing of --force-with-lease option
        t5540/5541: smart-http does not support "--force-with-lease"
        t5533: test "push --force-with-lease"
        push --force-with-lease: tie it all together
        push --force-with-lease: implement logic to populate old_sha1_expect[]
        remote.c: add command line option parser for "--force-with-lease"
        builtin/push.c: use OPT_BOOL, not OPT_BOOLEAN
        cache.h: move remote/connect API out of it
      2233ad45
    • J
      Merge branch 'nd/clone-connectivity-shortcut' · 711b2769
      Junio C Hamano 提交于
      * nd/clone-connectivity-shortcut:
        smart http: use the same connectivity check on cloning
      711b2769
    • J
      Merge branch 'jc/diff-filter-negation' · 01a2a03c
      Junio C Hamano 提交于
      Teach "git diff --diff-filter" to express "I do not want to see
      these classes of changes" more directly by listing only the
      unwanted ones in lowercase (e.g. "--diff-filter=d" will show
      everything but deletion) and deprecate "diff-files -q" which did
      the same thing as "--diff-filter=d".
      
      * jc/diff-filter-negation:
        diff: deprecate -q option to diff-files
        diff: allow lowercase letter to specify what change class to exclude
        diff: reject unknown change class given to --diff-filter
        diff: preparse --diff-filter string argument
        diff: factor out match_filter()
        diff: pass the whole diff_options to diffcore_apply_filter()
      01a2a03c
    • J
      Merge branch 'ms/fetch-prune-configuration' · a5e10f8b
      Junio C Hamano 提交于
      Allow fetch.prune and remote.*.prune configuration variables to be set,
      and "git fetch" to behave as if "--prune" is given.
      
      "git fetch" that honors remote.*.prune is fine, but I wonder if we
      should somehow make "git push" aware of it as well.  Perhaps
      remote.*.prune should not be just a boolean, but a 4-way "none",
      "push", "fetch", "both"?
      
      * ms/fetch-prune-configuration:
        fetch: make --prune configurable
      a5e10f8b
  2. 09 9月, 2013 1 次提交
    • R
      remote-bzr: reuse bzrlib transports when possible · bd5424f0
      Richard Hansen 提交于
      Pass a list of open bzrlib.transport.Transport objects to each bzrlib
      function that might create a transport.  This enables bzrlib to reuse
      existing transports when possible, avoiding multiple concurrent
      connections to the same remote server.
      
      If the remote server is accessed via ssh, this fixes a couple of
      problems:
        * If the user does not have keys loaded into an ssh agent, the user
          may be prompted for a password multiple times.
        * If the user is using OpenSSH and the ControlMaster setting is set
          to auto, git-remote-bzr might hang.  This is because bzrlib closes
          the multiple ssh sessions in an undefined order and might try to
          close the master ssh session before the other sessions.  The
          master ssh process will not exit until the other sessions have
          exited, causing a deadlock.  (The ssh sessions are closed in an
          undefined order because bzrlib relies on the Python garbage
          collector to trigger ssh session termination.)
      Signed-off-by: NRichard Hansen <rhansen@bbn.com>
      Acked-by: NFelipe Contreras <felipe.contreras@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      bd5424f0
  3. 06 9月, 2013 6 次提交
  4. 05 9月, 2013 21 次提交
    • J
    • J
      Merge branch 'sb/parseopt-boolean-removal' · a86a8b97
      Junio C Hamano 提交于
      Convert most uses of OPT_BOOLEAN/OPTION_BOOLEAN that can use
      OPT_BOOL/OPTION_BOOLEAN which have much saner semantics, and turn
      remaining ones into OPT_SET_INT, OPT_COUNTUP, etc. as necessary.
      
      * sb/parseopt-boolean-removal:
        revert: use the OPT_CMDMODE for parsing, reducing code
        checkout-index: fix negations of even numbers of -n
        config parsing options: allow one flag multiple times
        hash-object: replace stdin parsing OPT_BOOLEAN by OPT_COUNTUP
        branch, commit, name-rev: ease up boolean conditions
        checkout: remove superfluous local variable
        log, format-patch: parsing uses OPT__QUIET
        Replace deprecated OPT_BOOLEAN by OPT_BOOL
        Remove deprecated OPTION_BOOLEAN for parsing arguments
      a86a8b97
    • J
      Merge branch 'jc/parseopt-command-modes' · 366b80bf
      Junio C Hamano 提交于
      Many commands use --dashed-option as a operation mode selector
      (e.g. "git tag --delete") that the user can use at most one
      (e.g. "git tag --delete --verify" is a nonsense) and you cannot
      negate (e.g. "git tag --no-delete" is a nonsense).  Make it easier
      for users of parse_options() to enforce these restrictions.
      
      * jc/parseopt-command-modes:
        tag: use OPT_CMDMODE
        parse-options: add OPT_CMDMODE()
      366b80bf
    • J
      Merge branch 'jl/some-submodule-config-are-not-boolean' · 5fb0e086
      Junio C Hamano 提交于
      * jl/some-submodule-config-are-not-boolean:
        avoid segfault on submodule.*.path set to an empty "true"
      5fb0e086
    • J
      Merge branch 'sg/bash-prompt-lf-in-cwd-test' · baa8d42f
      Junio C Hamano 提交于
      * sg/bash-prompt-lf-in-cwd-test:
        bash prompt: test the prompt with newline in repository path
      baa8d42f
    • J
      Merge branch 'sb/diff-delta-remove-needless-comparison' · 7216b1fb
      Junio C Hamano 提交于
      * sb/diff-delta-remove-needless-comparison:
        create_delta_index: simplify condition always evaluating to true
      7216b1fb
    • J
      Merge branch 'fc/unpack-trees-leakfix' · 94f00694
      Junio C Hamano 提交于
      * fc/unpack-trees-leakfix:
        unpack-trees: plug a memory leak
      94f00694
    • J
      Merge branch 'aj/p4-symlink-lose-nl' · a62b071d
      Junio C Hamano 提交于
      * aj/p4-symlink-lose-nl:
        git-p4: Fix occasional truncation of symlink contents.
      a62b071d
    • J
      Merge branch 'fc/remote-hg-shared-setup' · 4f5e9726
      Junio C Hamano 提交于
      * fc/remote-hg-shared-setup:
        remote-hg: add shared repo upgrade
        remote-hg: ensure shared repo is initialized
      4f5e9726
    • J
      Merge branch 'sb/misc-cleanup' · 2bdd8727
      Junio C Hamano 提交于
      * sb/misc-cleanup:
        rm: remove unneeded null pointer check
        diff: fix a possible null pointer dereference
        diff: remove ternary operator evaluating always to true
      2bdd8727
    • J
      Merge branch 'nd/gc-lock-against-each-other' · 05584b2a
      Junio C Hamano 提交于
      * nd/gc-lock-against-each-other:
        gc: reject if another gc is running, unless --force is given
      05584b2a
    • J
      Merge branch 'ap/remote-hg-tilde-is-home-directory' · 0335b647
      Junio C Hamano 提交于
      * ap/remote-hg-tilde-is-home-directory:
        remote-hg: fix path when cloning with tilde expansion
      0335b647
    • J
      Merge branch 'mm/no-shell-escape-in-die-message' · aaf4d399
      Junio C Hamano 提交于
      Fixes a minor bug in "git rebase -i" (there could be others, as the
      root cause is pretty generic) where the code feeds a random, data
      dependeant string to 'echo' and expects it to come out literally.
      
      * mm/no-shell-escape-in-die-message:
        die_with_status: use "printf '%s\n'", not "echo"
      aaf4d399
    • J
      Merge branch 'tr/fd-gotcha-fixes' · de5412bc
      Junio C Hamano 提交于
      Finishing touches to an earlier fix already in 'master'.
      
      * tr/fd-gotcha-fixes:
        t0070: test that git_mkstemps correctly checks return value of open()
      de5412bc
    • J
      Merge branch 'bc/unuse-packfile' · 04fbba01
      Junio C Hamano 提交于
      Handle memory pressure and file descriptor pressure separately when
      deciding to release pack windows to honor resource limits.
      
      * bc/unuse-packfile:
        Don't close pack fd when free'ing pack windows
        sha1_file: introduce close_one_pack() to close packs on fd pressure
      04fbba01
    • J
      Merge branch 'da/darwin' · 9a7eaad6
      Junio C Hamano 提交于
      * da/darwin:
        OS X: Fix redeclaration of die warning
        Makefile: Fix APPLE_COMMON_CRYPTO with BLK_SHA1
        imap-send: use Apple's Security framework for base64 encoding
      9a7eaad6
    • J
      Merge branch 'nd/sq-quote-buf' · 4aa04a8f
      Junio C Hamano 提交于
      Code simplification as a preparatory step to something larger.
      
      * nd/sq-quote-buf:
        quote: remove sq_quote_print()
        tar-tree: remove dependency on sq_quote_print()
        for-each-ref, quote: convert *_quote_print -> *_quote_buf
      4aa04a8f
    • J
      Merge branch 'rr/feed-real-path-to-editor' · d9fc2489
      Junio C Hamano 提交于
      * rr/feed-real-path-to-editor:
        editor: use canonicalized absolute path
      d9fc2489
    • J
      Merge branch 'jk/fast-import-empty-ls' · 7e394720
      Junio C Hamano 提交于
      * jk/fast-import-empty-ls:
        fast-import: allow moving the root tree
        fast-import: allow ls or filecopy of the root tree
        fast-import: set valid mode on root tree in "ls"
        t9300: document fast-import empty path issues
      7e394720
    • J
      Merge branch 'km/svn-1.8-serf-only' · 0f7483ee
      Junio C Hamano 提交于
      Subversion 1.8.0 that was recently released breaks older subversion
      clients coming over http/https in various ways.
      
      * km/svn-1.8-serf-only:
        Git.pm: revert _temp_cache use of temp_is_locked
        git-svn: allow git-svn fetching to work using serf
        Git.pm: add new temp_is_locked function
      0f7483ee
    • J
      Merge branch 'jc/check-x-z' · 0db320d0
      Junio C Hamano 提交于
      "git check-ignore -z" applied the NUL termination to both its input
      (with --stdin) and its output, but "git check-attr -z" ignored the
      option on the output side.
      
      This is potentially a backward incompatible fix.  Let's see if
      anybody screams before deciding if we want to do anything to help
      existing users (there may be none).
      
      * jc/check-x-z:
        check-attr -z: a single -z should apply to both input and output
        check-ignore -z: a single -z should apply to both input and output
        check-attr: the name of the character is NUL, not NULL
        check-ignore: the name of the character is NUL, not NULL
      0db320d0
  5. 04 9月, 2013 4 次提交