1. 08 2月, 2012 1 次提交
    • J
      drop odd return value semantics from userdiff_config · 6680a087
      Jeff King 提交于
      When the userdiff_config function was introduced in be58e70d
      (diff: unify external diff and funcname parsing code,
      2008-10-05), it used a return value convention unlike any
      other config callback. Like other callbacks, it used "-1" to
      signal error. But it returned "1" to indicate that it found
      something, and "0" otherwise; other callbacks simply
      returned "0" to indicate that no error occurred.
      
      This distinction was necessary at the time, because the
      userdiff namespace overlapped slightly with the color
      configuration namespace. So "diff.color.foo" could mean "the
      'foo' slot of diff coloring" or "the 'foo' component of the
      "color" userdiff driver". Because the color-parsing code
      would die on an unknown color slot, we needed the userdiff
      code to indicate that it had matched the variable, letting
      us bypass the color-parsing code entirely.
      
      Later, in 8b8e8624 (ignore unknown color configuration,
      2009-12-12), the color-parsing code learned to silently
      ignore unknown slots. This means we no longer need to
      protect userdiff-matched variables from reaching the
      color-parsing code.
      
      We can therefore change the userdiff_config calling
      convention to a more normal one. This drops some code from
      each caller, which is nice. But more importantly, it reduces
      the cognitive load for readers who may wonder why
      userdiff_config is unlike every other config callback.
      
      There's no need to add a new test confirming that this
      works; t4020 already contains a test that sets
      diff.color.external.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      6680a087
  2. 06 2月, 2012 12 次提交
  3. 02 2月, 2012 1 次提交
  4. 01 2月, 2012 13 次提交
    • J
      Merge branch 'tr/merge-edit-guidance' · 873ce7c8
      Junio C Hamano 提交于
      * tr/merge-edit-guidance:
        merge: add instructions to the commit message when editing
      873ce7c8
    • J
      Merge branch 'jc/pull-signed-tag' · af6b37fa
      Junio C Hamano 提交于
      * jc/pull-signed-tag:
        merge: use editor by default in interactive sessions
      
      Conflicts:
      	Documentation/merge-options.txt
      af6b37fa
    • J
      Merge branch 'ar/i18n-no-gettext' · 2a2aa8e5
      Junio C Hamano 提交于
      * ar/i18n-no-gettext:
        i18n: Do not force USE_GETTEXT_SCHEME=fallthrough on NO_GETTEXT
        i18n: Make NO_GETTEXT imply fallthrough scheme in shell l10n
        add a Makefile switch to avoid gettext translation in shell scripts
        git-sh-i18n: restructure the logic to compute gettext.sh scheme
      2a2aa8e5
    • J
      Merge branch 'nd/clone-detached' · 5ce2b97d
      Junio C Hamano 提交于
      * nd/clone-detached:
        clone: fix up delay cloning conditions
        push: do not let configured foreign-vcs permanently clobbered
        clone: print advice on checking out detached HEAD
        clone: allow --branch to take a tag
        clone: refuse to clone if --branch points to bogus ref
        clone: --branch=<branch> always means refs/heads/<branch>
        clone: delay cloning until after remote HEAD checking
        clone: factor out remote ref writing
        clone: factor out HEAD update code
        clone: factor out checkout code
        clone: write detached HEAD in bare repositories
        t5601: add missing && cascade
      5ce2b97d
    • J
      Merge branch 'da/maint-mergetool-twoway' · 5e92376f
      Junio C Hamano 提交于
      * da/maint-mergetool-twoway:
        mergetool: Provide an empty file when needed
      5e92376f
    • J
      Merge branch 'va/git-p4-branch' · ab085174
      Junio C Hamano 提交于
      * va/git-p4-branch:
        t9801: do not overuse test_must_fail
        git-p4: Change p4 command invocation
        git-p4: Add test case for complex branch import
        git-p4: Search for parent commit on branch creation
      ab085174
    • J
      Merge branch 'jl/submodule-re-add' · 412a79f4
      Junio C Hamano 提交于
      * jl/submodule-re-add:
        submodule add: fix breakage when re-adding a deep submodule
      412a79f4
    • J
      Merge branch 'tr/grep-l-with-decoration' · 3e9e4165
      Junio C Hamano 提交于
      * tr/grep-l-with-decoration:
        grep: fix -l/-L interaction with decoration lines
      3e9e4165
    • J
      Merge branch 'ks/sort-wildcard-in-makefile' · fc75ad72
      Junio C Hamano 提交于
      * ks/sort-wildcard-in-makefile:
        t/Makefile: Use $(sort ...) explicitly where needed
      fc75ad72
    • J
      Merge branch 'ld/git-p4-branches-and-labels' · 8d7ac730
      Junio C Hamano 提交于
      * ld/git-p4-branches-and-labels:
        git-p4: label import fails with multiple labels at the same changelist
        git-p4: add test for p4 labels
        git-p4: importing labels should cope with missing owner
        git-p4: cope with labels with empty descriptions
        git-p4: handle p4 branches and labels containing shell chars
      8d7ac730
    • J
      Merge branch 'rr/sequencer' · 7010146f
      Junio C Hamano 提交于
      * rr/sequencer:
        sequencer: factor code out of revert builtin
        revert: prepare to move replay_action to header
      
      Conflicts:
      	builtin/revert.c
      7010146f
    • J
      Merge branch 'jc/advise-i18n' · 87a23e77
      Junio C Hamano 提交于
      * jc/advise-i18n:
        i18n of multi-line advice messages
      87a23e77
    • T
      merge: add instructions to the commit message when editing · f26af3fc
      Thomas Rast 提交于
      Before f8246281 (merge: use editor by default in interactive sessions,
      2012-01-10), git-merge only started an editor if the user explicitly
      asked for it with --edit.  Thus it seemed unlikely that the user would
      need extra guidance.
      
      After f8246281 the _normal_ thing is to start an editor.  Give at least
      an indication of why we are doing it.
      
      The sentence about justification is one of the few things about
      standard git that are not agnostic to the workflow that the user
      chose.  However, f8246281 was proposed by Linus specifically to
      discourage users from merging unrelated upstream progress into topic
      branches.  So we may as well take another step in the same direction.
      Signed-off-by: NThomas Rast <trast@student.ethz.ch>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      f26af3fc
  5. 31 1月, 2012 1 次提交
  6. 30 1月, 2012 12 次提交