1. 17 4月, 2009 1 次提交
  2. 16 4月, 2009 2 次提交
    • J
      add-interactive: refactor mode hunk handling · 0392513f
      Jeff King 提交于
      The original implementation considered the mode separately
      from the rest of the hunks, asking about it outside the main
      hunk-selection loop. This patch instead places a mode change
      as the first hunk in the loop. This has two advantages:
      
        1. less duplicated code (since we use the main selection
           loop). This also cleans up an inconsistency, which is
           that the main selection loop separates options with a
           comma, whereas the mode prompt used slashes.
      
        2. users can now skip the mode change and come back to it,
           search for it (via "/mode"), etc, as they can with other
           hunks.
      
      To facilitate this, each hunk is now marked with a "type".
      Mode hunks are not considered for splitting (which would
      make no sense, and also confuses the split_hunk function),
      nor are they editable. In theory, one could edit the mode
      lines and change to a new mode. In practice, there are only
      two modes that git cares about (0644 and 0755), so either
      you want to move from one to the other or not (and you can
      do that by staging or not staging).
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      0392513f
    • M
      git add -p: new "quit" command at the prompt. · 9a7a1e03
      Matthieu Moy 提交于
      There's already 'd' to stop staging hunks in a file, but no explicit
      command to stop the interactive staging (for the current files and the
      remaining ones).  Of course you can do 'd' and then ^C, but it would be
      more intuitive to allow 'quit' action.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      9a7a1e03
  3. 13 4月, 2009 14 次提交
    • J
      GIT 1.6.3-rc0 · c965c029
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      c965c029
    • N
      Documentation/git.txt: GIT 1.6.2.2 has been out for a while · 54a47493
      Nanako Shiraishi 提交于
      These links inside "stalenotes" section need to be updated on the master
      branch every time a new stable or maintenance release is made.
      Signed-off-by: NNanako Shiraishi <nanako3@lavabit.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      54a47493
    • J
      Merge branch 'jk/no-perl' · 6f523f6d
      Junio C Hamano 提交于
      * jk/no-perl:
        tests: skip perl tests if NO_PERL is defined
        Makefile: allow building without perl
      6f523f6d
    • J
      Merge branch 'sb/doc-upstream-branch' · c736becc
      Junio C Hamano 提交于
      * sb/doc-upstream-branch:
        Documentation: Introduce "upstream branch"
      c736becc
    • J
      Merge branch 'jk/show-upstream' · 3e52effc
      Junio C Hamano 提交于
      * jk/show-upstream:
        branch: show upstream branch when double verbose
        make get_short_ref a public function
        for-each-ref: add "upstream" format field
        for-each-ref: refactor refname handling
        for-each-ref: refactor get_short_ref function
      3e52effc
    • J
      Merge branch 'fg/remote-prune' · c276857e
      Junio C Hamano 提交于
      * fg/remote-prune:
        add tests for remote groups
        git remote update: Fallback to remote if group does not exist
        remote: New function remote_is_configured()
        git remote update: Report error for non-existing groups
        git remote update: New option --prune
        builtin-remote.c: Split out prune_remote as a separate function.
      c276857e
    • J
      Merge branch 'cc/sha1-bsearch' · 07fb030e
      Junio C Hamano 提交于
      * cc/sha1-bsearch:
        sha1-lookup: fix up the assertion message
      07fb030e
    • J
      Merge branch 'cc/bisect-filter' · 6e353a5e
      Junio C Hamano 提交于
      * cc/bisect-filter: (21 commits)
        rev-list: add "int bisect_show_flags" in "struct rev_list_info"
        rev-list: remove last static vars used in "show_commit"
        list-objects: add "void *data" parameter to show functions
        bisect--helper: string output variables together with "&&"
        rev-list: pass "int flags" as last argument of "show_bisect_vars"
        t6030: test bisecting with paths
        bisect: use "bisect--helper" and remove "filter_skipped" function
        bisect: implement "read_bisect_paths" to read paths in "$GIT_DIR/BISECT_NAMES"
        bisect--helper: implement "git bisect--helper"
        bisect: use the new generic "sha1_pos" function to lookup sha1
        rev-list: call new "filter_skip" function
        patch-ids: use the new generic "sha1_pos" function to lookup sha1
        sha1-lookup: add new "sha1_pos" function to efficiently lookup sha1
        rev-list: pass "revs" to "show_bisect_vars"
        rev-list: make "show_bisect_vars" non static
        rev-list: move code to show bisect vars into its own function
        rev-list: move bisect related code into its own file
        rev-list: make "bisect_list" variable local to "cmd_rev_list"
        refs: add "for_each_ref_in" function to refactor "for_each_*_ref" functions
        quote: add "sq_dequote_to_argv" to put unwrapped args in an argv array
        ...
      6e353a5e
    • J
      Merge branch 'maint' · a54c4edc
      Junio C Hamano 提交于
      * maint:
        GIT 1.6.2.3
        State the effect of filter-branch on graft explicitly
        process_{tree,blob}: Remove useless xstrdup calls
      
      Conflicts:
      	GIT-VERSION-GEN
      a54c4edc
    • J
      GIT 1.6.2.3 · 3bd1bb32
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      3bd1bb32
    • J
      Merge branch 'maint-1.6.1' into maint · 1966af81
      Junio C Hamano 提交于
      * maint-1.6.1:
        State the effect of filter-branch on graft explicitly
        process_{tree,blob}: Remove useless xstrdup calls
      1966af81
    • J
      Merge branch 'maint-1.6.0' into maint-1.6.1 · bc69776a
      Junio C Hamano 提交于
      * maint-1.6.0:
        State the effect of filter-branch on graft explicitly
        process_{tree,blob}: Remove useless xstrdup calls
      bc69776a
    • D
    • L
      process_{tree,blob}: Remove useless xstrdup calls · 21315268
      Linus Torvalds 提交于
      On Wed, 8 Apr 2009, Björn Steinbrink wrote:
      >
      > The name of the processed object was duplicated for passing it to
      > add_object(), but that already calls path_name, which allocates a new
      > string anyway. So the memory allocated by the xstrdup calls just went
      > nowhere, leaking memory.
      
      Ack, ack.
      
      There's another easy 5% or so for the built-in object walker: once we've
      created the hash from the name, the name isn't interesting any more, and
      so something trivial like this can help a bit.
      
      Does it matter? Probably not on its own. But a few more memory saving
      tricks and it might all make a difference.
      
      		Linus
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      21315268
  4. 12 4月, 2009 9 次提交
  5. 09 4月, 2009 14 次提交