1. 08 5月, 2012 20 次提交
    • J
      status: refactor colopts handling · 4d2292e9
      Jeff King 提交于
      The current code reads the config and command-line options
      into a separate "colopts" variable, and then copies the
      contents of that variable into the "struct wt_status". We
      can eliminate the extra variable and copy just write
      straight into the wt_status struct.
      
      This simplifies the "status" code a little bit.
      Unfortunately, it makes the "commit" code one line more
      complex; a side effect of the separate variable was that
      "commit" did not copy the colopts variable, so any
      column.status configuration had no effect.
      
      The result still ends up cleaner, though. In the previous
      version, it was unclear whether commit simply forgot to copy
      the colopt variable, or whether it was intentional. Now it
      explicitly turns off column options. Furthermore, if commit
      later learns to respect column.status, this will make the
      end result simpler. I punted on just adding that feature
      now, because it was sufficiently non-obvious that it should
      not go into a refactoring patch.
      Signed-off-by: NJeff King <peff@peff.net>
      4d2292e9
    • J
      Merge branch 'jk/maint-status-porcelain-z-b' into HEAD · 5410ae42
      Jeff King 提交于
      * jk/maint-status-porcelain-z-b:
        status: respect "-b" for porcelain format
        status: fix null termination with "-b"
        status: refactor null_termination option
        commit: refactor option parsing
      
      Conflicts:
      	wt-status.h
      5410ae42
    • J
      status: respect "-b" for porcelain format · d4a6bf1f
      Jeff King 提交于
      There is no reason not to, as the user has to explicitly ask
      for it, so we are not breaking compatibility by doing so. We
      can do this simply by moving the "show_branch" flag into
      the wt_status struct. As a bonus, this saves us from passing
      it explicitly, simplifying the code.
      Signed-off-by: NJeff King <peff@peff.net>
      d4a6bf1f
    • J
      status: fix null termination with "-b" · a5985237
      Jeff King 提交于
      When the "-z" option is given to status, we are supposed to
      NUL-terminate each record. However, the "-b" code to show
      the tracking branch did not respect this, and always ended
      with a newline.
      Signed-off-by: NJeff King <peff@peff.net>
      a5985237
    • J
      status: refactor null_termination option · 3207a3a2
      Jeff King 提交于
      This option is passed separately to the wt_status printing
      functions, whereas every other formatting option is
      contained in the wt_status struct itself. Let's do the same
      here, so we can avoid passing it around through the call
      stack.
      Signed-off-by: NJeff King <peff@peff.net>
      3207a3a2
    • J
      commit: refactor option parsing · 036dbbfb
      Jeff King 提交于
      The options are declared as a static global, but really they
      need only be accessible from cmd_commit.  Additionally,
      declare the "struct wt_status" in cmd_commit and cmd_status
      as static at the top of each function; this will let the
      options lists reference them directly, which will facilitate
      further cleanups.
      Signed-off-by: NJeff King <peff@peff.net>
      036dbbfb
    • J
      The ninth batch of topics graduated to 'master' · a3935e67
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      a3935e67
    • J
      Merge branch 'nh/empty-rebase' · 5543501c
      Junio C Hamano 提交于
      By Neil Horman
      * nh/empty-rebase:
        git cherry-pick: do not dereference a potential NULL pointer
      5543501c
    • J
      Merge branch 'zj/diff-empty-chmod' · fc1320bf
      Junio C Hamano 提交于
      "git diff --stat" used to fully count a binary file with modified
      execution bits whose contents is unmodified, which was not right.
      
      By Zbigniew Jędrzejewski-Szmek (4) and Johannes Sixt (1)
      * zj/diff-empty-chmod:
        t4006: Windows do not have /dev/zero
        diff --stat: do not run diff on indentical files
        diff --stat: report mode-only changes for binary files like text files
        tests: check --[short]stat output after chmod
        test: modernize style of t4006
      
      Conflicts:
      	diff.c
      fc1320bf
    • J
      Merge branch 'jk/maint-tformat-with-z' · 43d1e41e
      Junio C Hamano 提交于
      "log -z --pretty=tformat:..." does not terminate each record with NUL
      and this is a beginning of an attempt to fix it.  It still is not right
      but the patch does not make externally observable behaviour worse.
      
      By Jan Krüger (1) and Junio C Hamano (1)
      * jk/maint-tformat-with-z:
        log-tree: the previous one is still not quite right
        log-tree: use custom line terminator in line termination mode
      43d1e41e
    • J
      Merge branch 'th/difftool-diffall' · cae09772
      Junio C Hamano 提交于
      Rolls the two-directory-diff logic from diffall script (in contrib/) into
      "git difftool" framework.
      
      By Tim Henigan
      * th/difftool-diffall:
        difftool: print list of valid tools with '--tool-help'
        difftool: teach difftool to handle directory diffs
        difftool: eliminate setup_environment function
        difftool: stop appending '.exe' to git
        difftool: remove explicit change of PATH
        difftool: exit(0) when usage is printed
        difftool: add '--no-gui' option
        difftool: parse options using Getopt::Long
      cae09772
    • J
      Sync with maint · ad799ea3
      Junio C Hamano 提交于
      ad799ea3
    • J
      Start preparing for 1.7.10.2 · 42325fb2
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      42325fb2
    • J
      Merge branch 'jk/maint-gitweb-test-use-sane-perl' into maint · dc813f66
      Junio C Hamano 提交于
      When using a Perl script on a system where "perl" found on user's $PATH
      could be ancient or otherwise broken, we allow builders to specify the
      path to a good copy of Perl with $PERL_PATH.  The gitweb test forgot to
      use that Perl when running its test.
      
      By Jeff King (1) and Zbigniew Jędrzejewski-Szmek (1)
      * jk/maint-gitweb-test-use-sane-perl:
        Consistently use perl from /usr/bin/ for scripts
        t/gitweb-lib: use $PERL_PATH to run gitweb
      dc813f66
    • J
      Merge branch 'js/daemon-test-race-fix' into maint · 6a88021e
      Junio C Hamano 提交于
      The test scaffolding for git-daemon was flaky.
      
      By Johannes Sixt
      * js/daemon-test-race-fix:
        t5570: fix forwarding of git-daemon messages via cat
      6a88021e
    • J
      Merge branch 'jk/maint-config-bogus-section' into maint · 4c8ad06e
      Junio C Hamano 提交于
      "git config --rename-section" to rename an existing section into a bogus
      one did not check the new name.
      
      By Jeff King
      * jk/maint-config-bogus-section:
        config: reject bogus section names for --rename-section
      4c8ad06e
    • J
      Merge branch 'pw/t5800-import-race-fix' into maint · 1d9fd668
      Junio C Hamano 提交于
      The test scaffolding for fast-import was flaky.
      
      By Pete Wyckoff
      * pw/t5800-import-race-fix:
        git-remote-testgit: fix race when spawning fast-import
      1d9fd668
    • J
      Merge branch 'rt/cherry-revert-conflict-summary' into maint · a28b919f
      Junio C Hamano 提交于
      In the older days, the header "Conflicts:" in "cherry-pick" and "merge"
      was separated by a blank line from the list of paths that follow for
      readability, but when "merge" was rewritten in C, we lost it by
      mistake. Remove the newline from "cherry-pick" to make them match again.
      
      By Ralf Thielow
      * rt/cherry-revert-conflict-summary:
        sequencer: remove additional blank line
      a28b919f
    • J
      Merge branch 'cb/maint-report-mount-point-correctly-in-setup' into maint · 71a32223
      Junio C Hamano 提交于
      The filesystem boundary was not correctly reported when .git directory
      discovery stopped at a mount point.
      
      By Clemens Buchacher
      * cb/maint-report-mount-point-correctly-in-setup:
        properly keep track of current working directory
      71a32223
    • P
      git p4 doc: fix formatting · 41925d58
      Pete Wyckoff 提交于
      Attach example sections to previous level of indenting.
      
      Fix a trailing ::
      Signed-off-by: NPete Wyckoff <pw@padd.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      41925d58
  2. 05 5月, 2012 1 次提交
  3. 04 5月, 2012 10 次提交
    • N
      git cherry-pick: do not dereference a potential NULL pointer · 4b580061
      Neil Horman 提交于
      In the case the pointer could be NULL, the function that gave the caller
      the NULL pointer would already have issued an error message, so simply
      returning early with an error status without issuing a new message is
      sufficient.  The same for parse_commit() that will show necessary error
      message when the argument is not NULL, and will return error silently
      when the argument is NULL.
      
      Noticed-by: Michael Mueller
      Signed-off-by: NNeil Horman <nhorman@tuxdriver.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      4b580061
    • J
      Merge branch 'maint' · 16798d0f
      Junio C Hamano 提交于
      * maint:
      16798d0f
    • J
      Merge branch 'jc/merge-reduce-parents-early' into maint · edf14121
      Junio C Hamano 提交于
      Octopus merge strategy did not reduce heads that are recorded in the final
      commit correctly.
      
      By Junio C Hamano (4) and Michał Kiedrowicz (1)
      * jc/merge-reduce-parents-early:
        fmt-merge-msg: discard needless merge parents
        builtin/merge.c: reduce parents early
        builtin/merge.c: collect other parents early
        builtin/merge.c: remove "remoteheads" global variable
        merge tests: octopus with redundant parents
      edf14121
    • J
      Merge branch 'cb/cherry-pick-rev-path-confusion' into maint · c4da6c0b
      Junio C Hamano 提交于
      The command line parser choked "git cherry-pick $name" when $name can be
      both revision name and a pathname, even though $name can never be a path
      in the context of the command.
      
      By Clemens Buchacher
      * cb/cherry-pick-rev-path-confusion:
        cherry-pick: do not expect file arguments
      c4da6c0b
    • J
      Merge branch 'cb/http-multi-curl-auth' into maint · c9683380
      Junio C Hamano 提交于
      HTTP transport that requires authentication did not work correctly when
      multiple connections are used simultaneously.
      
      By Jeff King (3) and Clemens Buchacher (1)
      * cb/http-multi-curl-auth:
        http: use newer curl options for setting credentials
        http: clean up leak in init_curl_http_auth
        fix http auth with multiple curl handles
        http auth fails with multiple curl handles
      c9683380
    • J
      Merge branch 'mb/fetch-call-a-non-branch-a-ref' into maint · 66bca3f7
      Junio C Hamano 提交于
      The report from "git fetch" said "new branch" even for a non branch ref.
      
      By Marc Branchaud
      * mb/fetch-call-a-non-branch-a-ref:
        fetch: describe new refs based on where it came from
        fetch: Give remote_ref to update_local_ref() as well
      66bca3f7
    • J
      Merge branch 'rl/maint-stash-i18n-save-error' into maint · beac07ea
      Junio C Hamano 提交于
      i18n marking for an error message for "git stash --notavalidoption"
      was incorrect.
      
      By Ross Lagerwall
      * rl/maint-stash-i18n-save-error:
        stash: use eval_gettextln correctly
      beac07ea
    • J
      Merge branch 'jm/maint-strncpy-diff-no-index' into maint · a16ae14e
      Junio C Hamano 提交于
      "diff --no-index" codepath had a few places that used fixed-size
      buffer and truncated paths that are too long.
      
      By Jim Meyering (1) and Junio C Hamano (1)
      * jm/maint-strncpy-diff-no-index:
        diff --no-index: use strbuf for temporary pathnames
        diff: avoid stack-buffer-read-overrun for very long name
      a16ae14e
    • J
      Merge branch 'jk/maint-push-progress' · 4c732da9
      Junio C Hamano 提交于
      "git push" over smart-http lost progress output and this resurrects it.
      
      By Jeff King
      * jk/maint-push-progress:
        t5541: test more combinations of --progress
        teach send-pack about --[no-]progress
        send-pack: show progress when isatty(2)
      4c732da9
    • J
      Merge branch 'nd/columns' · f4ed0af6
      Junio C Hamano 提交于
      A couple of commands learn --column option to produce columnar output.
      
      By Nguyễn Thái Ngọc Duy (9) and Zbigniew Jędrzejewski-Szmek (1)
      * nd/columns:
        tag: add --column
        column: support piping stdout to external git-column process
        status: add --column
        branch: add --column
        help: reuse print_columns() for help -a
        column: add dense layout support
        t9002: work around shells that are unable to set COLUMNS to 1
        column: add columnar layout
        Stop starting pager recursively
        Add column layout skeleton and git-column
      f4ed0af6
  4. 03 5月, 2012 9 次提交