1. 21 9月, 2013 1 次提交
    • J
      format-patch: print in-body "From" only when needed · 662cc30c
      Jeff King 提交于
      Commit a9080475 taught format-patch the "--from" option,
      which places the author ident into an in-body from header,
      and uses the committer ident in the rfc822 from header.  The
      documentation claims that it will omit the in-body header
      when it is the same as the rfc822 header, but the code never
      implemented that behavior.
      
      This patch completes the feature by comparing the two idents
      and doing nothing when they are the same (this is the same
      as simply omitting the in-body header, as the two are by
      definition indistinguishable in this case). This makes it
      reasonable to turn on "--from" all the time (if it matches
      your particular workflow), rather than only using it when
      exporting other people's patches.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      662cc30c
  2. 04 7月, 2013 2 次提交
    • J
      teach format-patch to place other authors into in-body "From" · a9080475
      Jeff King 提交于
      Format-patch generates emails with the "From" address set to the
      author of each patch. If you are going to send the emails, however,
      you would want to replace the author identity with yours (if they
      are not the same), and bump the author identity to an in-body
      header.
      
      Normally this is handled by git-send-email, which does the
      transformation before sending out the emails. However, some
      workflows may not use send-email (e.g., imap-send, or a custom
      script which feeds the mbox to a non-git MUA). They could each
      implement this feature themselves, but getting it right is
      non-trivial (one must canonicalize the identities by reversing any
      RFC2047 encoding or RFC822 quoting of the headers, which has caused
      many bugs in send-email over the years).
      
      This patch takes a different approach: it teaches format-patch a
      "--from" option which handles the ident check and in-body header
      while it is writing out the email.  It's much simpler to do at this
      level (because we haven't done any quoting yet), and any workflow
      based on format-patch can easily turn it on.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      a9080475
    • J
      pretty.c: drop const-ness from pretty_print_context · 10f2fbff
      Jeff King 提交于
      In the current code, callers are expected to fill in the
      pretty_print_context, and then the pretty.c functions simply
      read from it. This leaves no room for the pretty.c functions
      to communicate with each other by manipulating the context
      (e.g., data seen while printing the header may impact how we
      print the body).
      
      Rather than introduce a new struct to hold modifiable data,
      let's just drop the const-ness of the existing context
      struct.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      10f2fbff
  3. 02 7月, 2013 16 次提交
    • J
      Merge branch 'maint' · 8c4e4ec3
      Junio C Hamano 提交于
      * maint:
        t7500: fix flipped actual/expect
        lib-rebase: document exec_ in FAKE_LINES
      8c4e4ec3
    • J
      Update draft release notes to 1.8.4 · 51f11d69
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      51f11d69
    • J
      Merge branch 'rr/remote-branch-config-refresh' · 7e5ad06f
      Junio C Hamano 提交于
      The original way to specify remote repository using .git/branches/
      used to have a nifty feature.  The code to support the feature was
      still in a function but the caller was changed not to call it 5
      years ago, breaking that feature and leaving the supporting code
      unreachable.
      
      * rr/remote-branch-config-refresh:
        t/t5505-remote: test multiple push/pull in remotes-file
        ls-remote doc: don't encourage use of branches-file
        ls-remote doc: rewrite <repository> paragraph
        ls-remote doc: fix example invocation on git.git
        t/t5505-remote: test url-with-# in branches-file
        remote: remove dead code in read_branches_file()
        t/t5505-remote: use test_path_is_missing
        t/t5505-remote: test push-refspec in branches-file
        t/t5505-remote: modernize style
      7e5ad06f
    • J
      Merge branch 'ed/color-prompt' · 46b04591
      Junio C Hamano 提交于
      Code clean-up for in-prompt status script (in contrib/).
      
      * ed/color-prompt:
        git-prompt.sh: add missing information in comments
        git-prompt.sh: do not print duplicate clean color code
        t9903: remove redundant tests
        git-prompt.sh: refactor colored prompt code
        t9903: add tests for git-prompt pcmode
      46b04591
    • J
      Merge branch 'ap/rebase-multiple-fixups' · eb3a4fc1
      Junio C Hamano 提交于
      Having multiple "fixup!" on a line in the rebase instruction sheet
      did not work very well with "git rebase -i --autosquash".
      
      * ap/rebase-multiple-fixups:
        lib-rebase: style: use write_script, <<-\EOF
        rebase -i: handle fixup! fixup! in --autosquash
      eb3a4fc1
    • J
      Merge branch 'kb/am-deprecate-resolved' · 4b9a0ded
      Junio C Hamano 提交于
      Promote "git am --continue" over "git am --resolved" for UI
      consistency.
      
      * kb/am-deprecate-resolved:
        am: replace uses of --resolved with --continue
      4b9a0ded
    • J
      Merge branch 'rr/column-doc' · 66929c42
      Junio C Hamano 提交于
      * rr/column-doc:
        column doc: rewrite documentation for column.ui
      66929c42
    • J
      Merge branch 'ft/doc-git-transport' · 43f25ae7
      Junio C Hamano 提交于
      * ft/doc-git-transport:
        documentation: add git:// transport security notice
      43f25ae7
    • J
      Merge branch 'sb/mailmap-merijn-brand' · 22930a0a
      Junio C Hamano 提交于
      * sb/mailmap-merijn-brand:
        .mailmap: Map "H.Merijn Brand" to "H. Merijn Brand"
      22930a0a
    • J
      Merge branch 'sg/bash-prompt' · 69350208
      Junio C Hamano 提交于
      * sg/bash-prompt:
        bash prompt: mention that PROMPT_COMMAND mode is faster
        bash prompt: avoid command substitution when finalizing gitstring
        bash prompt: avoid command substitution when checking for untracked files
        bash prompt: use bash builtins to check stash state
        bash prompt: use bash builtins to check for unborn branch for dirty state
        bash prompt: combine 'git rev-parse' for detached head
        bash prompt: combine 'git rev-parse' executions in the main code path
        bash prompt: use bash builtins to find out current branch
        bash prompt: use bash builtins to find out rebase state
        bash prompt: run 'git rev-parse --git-dir' directly instead of __gitdir()
        bash prompt: return early from __git_ps1() when not in a git repository
        bash prompt: print unique detached HEAD abbreviated object name
        bash prompt: add a test for symbolic link symbolic refs
        completion, bash prompt: move __gitdir() tests to completion test suite
        bash prompt: use 'write_script' helper in interactive rebase test
        bash prompt: fix redirection coding style in tests
      69350208
    • J
      Merge branch 'wk/doc-in-linux-3.x-era' · 0d07e98e
      Junio C Hamano 提交于
      Update documentation to match more recent realities.
      
      * wk/doc-in-linux-3.x-era:
        Documentation: Update 'linux-2.6.git' -> 'linux.git'
        Documentation: Update the NFS remote examples to use the staging repo
        doc/clone: Pick more compelling paths for the --reference example
        doc/clone: Remove the '--bare -l -s' example
      0d07e98e
    • J
      Merge branch 'jc/topo-author-date-sort' · 534f0e09
      Junio C Hamano 提交于
      "git log" learned the "--author-date-order" option, with which the
      output is topologically sorted and commits in parallel histories
      are shown intermixed together based on the author timestamp.
      
      * jc/topo-author-date-sort:
        t6003: add --author-date-order test
        topology tests: teach a helper to set author dates as well
        t6003: add --date-order test
        topology tests: teach a helper to take abbreviated timestamps
        t/lib-t6000: style fixes
        log: --author-date-order
        sort-in-topological-order: use prio-queue
        prio-queue: priority queue of pointers to structs
        toposort: rename "lifo" field
      534f0e09
    • J
      Merge branch 'jk/commit-info-slab' · 55f34c8d
      Junio C Hamano 提交于
      Allow adding custom information to commit objects in order to
      represent unbound number of flag bits etc.
      
      * jk/commit-info-slab:
        commit-slab: introduce a macro to define a slab for new type
        commit-slab: avoid large realloc
        commit: allow associating auxiliary info on-demand
      55f34c8d
    • A
      a4952815
    • A
      t7500: fix flipped actual/expect · f66d000b
      Andrew Pimlott 提交于
      Signed-off-by: NAndrew Pimlott <andrew@pimlott.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      f66d000b
    • A
      lib-rebase: document exec_ in FAKE_LINES · 296fa993
      Andrew Pimlott 提交于
      Signed-off-by: NAndrew Pimlott <andrew@pimlott.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      296fa993
  4. 01 7月, 2013 12 次提交
    • J
      Merge branch 'maint' · 7a3187eb
      Junio C Hamano 提交于
      * maint:
        Start preparing for 1.8.3.3
        check-ignore doc: fix broken link to ls-files page
        test: spell 'ls-files --delete' option correctly in test descriptions
      7a3187eb
    • J
      Update draft release notes to 1.8.4 · c1182d92
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      c1182d92
    • J
      Merge branch 'mh/ref-races' · 079424a2
      Junio C Hamano 提交于
      "git pack-refs" that races with new ref creation or deletion have
      been susceptible to lossage of refs under right conditions, which
      has been tightened up.
      
      * mh/ref-races:
        for_each_ref: load all loose refs before packed refs
        get_packed_ref_cache: reload packed-refs file when it changes
        add a stat_validity struct
        Extract a struct stat_data from cache_entry
        packed_ref_cache: increment refcount when locked
        do_for_each_entry(): increment the packed refs cache refcount
        refs: manage lifetime of packed refs cache via reference counting
        refs: implement simple transactions for the packed-refs file
        refs: wrap the packed refs cache in a level of indirection
        pack_refs(): split creation of packed refs and entry writing
        repack_without_ref(): split list curation and entry writing
      079424a2
    • J
      Merge branch 'ap/diff-ignore-blank-lines' · 08585fd4
      Junio C Hamano 提交于
      "git diff" learned a mode that ignores hunks whose change consists
      only of additions and removals of blank lines, which is the same as
      "diff -B" (ignore blank lines) of GNU diff.
      
      * ap/diff-ignore-blank-lines:
        diff: add --ignore-blank-lines option
      08585fd4
    • J
      Merge branch 'mh/loose-refs-race-with-pack-ref' · d1314826
      Junio C Hamano 提交于
      We read loose and packed rerferences in two steps, but after
      deciding to read a loose ref but before actually opening it to read
      it, another process racing with us can unlink it, which would cause
      us to barf. Update the codepath to retry when such a race is
      detected.
      
      * mh/loose-refs-race-with-pack-ref:
        resolve_ref_unsafe(): close race condition reading loose refs
        resolve_ref_unsafe(): handle the case of an SHA-1 within loop
        resolve_ref_unsafe(): extract function handle_missing_loose_ref()
      d1314826
    • J
      Merge branch 'nk/name-rev-abbreviated-refs' · 96ffd4ca
      Junio C Hamano 提交于
      "git name-rev --refs=tags/v*" were forbidden, which was a bit
      inconvenient (you had to give a pattern to match refs fully, like
      --refs=refs/tags/v*).
      
      * nk/name-rev-abbreviated-refs:
        name-rev: allow to specify a subpath for --refs option
      96ffd4ca
    • J
      Merge branch 'jk/submodule-subdirectory-ok' · d9857bfd
      Junio C Hamano 提交于
      Allow various subcommands of "git submodule" to be run not from the
      top of the working tree of the superproject.
      
      * jk/submodule-subdirectory-ok:
        submodule: drop the top-level requirement
        rev-parse: add --prefix option
        submodule: show full path in error message
        t7403: add missing && chaining
        t7403: modernize style
        t7401: make indentation consistent
      d9857bfd
    • J
      Start preparing for 1.8.3.3 · 43d11f44
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      43d11f44
    • J
      Merge branch 'fc/macos-x-clipped-write' into maint · c6c4250e
      Junio C Hamano 提交于
      Mac OS X does not like to write(2) more than INT_MAX number of
      bytes; work it around by chopping write(2) into smaller pieces.
      
      * fc/macos-x-clipped-write:
        compate/clipped-write.c: large write(2) fails on Mac OS X/XNU
      c6c4250e
    • J
      Merge branch 'da/darwin' into maint · 91863750
      Junio C Hamano 提交于
      Newer MacOS X encourages the programs to compile and link with their
      CommonCrypto, not with OpenSSL.
      
      * da/darwin:
        imap-send: eliminate HMAC deprecation warnings on Mac OS X
        cache.h: eliminate SHA-1 deprecation warnings on Mac OS X
        Makefile: add support for Apple CommonCrypto facility
        Makefile: fix default regex settings on Darwin
      91863750
    • R
    • S
      test: spell 'ls-files --delete' option correctly in test descriptions · 5155c7f3
      SZEDER Gábor 提交于
      The option is spelled '--deleted'.
      Signed-off-by: NSZEDER Gábor <szeder@ira.uka.de>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      5155c7f3
  5. 29 6月, 2013 4 次提交
  6. 28 6月, 2013 5 次提交