1. 11 10月, 2011 18 次提交
    • J
      Update draft release notes to 1.7.8 · 8b0e15fa
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      8b0e15fa
    • J
      Merge branch 'dm/tree-walk' · 4909bbe4
      Junio C Hamano 提交于
      * dm/tree-walk:
        tree-walk: micro-optimization in tree_entry_interesting
        tree-walk: drop unused parameter from match_dir_prefix
      4909bbe4
    • J
      Merge branch 'ps/gitweb-js-with-lineno' · 59b32ff3
      Junio C Hamano 提交于
      * ps/gitweb-js-with-lineno:
        gitweb: Fix links to lines in blobs when javascript-actions are enabled
      59b32ff3
    • J
      Merge branch 'mh/maint-notes-merge-pathbuf-fix' · e579a5d3
      Junio C Hamano 提交于
      * mh/maint-notes-merge-pathbuf-fix:
        notes_merge_commit(): do not pass temporary buffer to other function
      e579a5d3
    • J
      Merge branch 'nd/sparse-doc' · bf604e64
      Junio C Hamano 提交于
      * nd/sparse-doc:
        git-read-tree.txt: update sparse checkout examples
      bf604e64
    • J
      Merge branch 'jp/get-ref-dir-unsorted' · 2c5c66be
      Junio C Hamano 提交于
      * jp/get-ref-dir-unsorted:
        refs.c: free duplicate entries in the ref array instead of leaking them
        refs.c: abort ref search if ref array is empty
        refs.c: ensure struct whose member may be passed to realloc is initialized
        refs: Use binary search to lookup refs faster
        Don't sort ref_list too early
      
      Conflicts:
      	refs.c
      2c5c66be
    • J
      Merge branch 'mh/check-ref-format-3' · 9bd50004
      Junio C Hamano 提交于
      * mh/check-ref-format-3: (23 commits)
        add_ref(): verify that the refname is formatted correctly
        resolve_ref(): expand documentation
        resolve_ref(): also treat a too-long SHA1 as invalid
        resolve_ref(): emit warnings for improperly-formatted references
        resolve_ref(): verify that the input refname has the right format
        remote: avoid passing NULL to read_ref()
        remote: use xstrdup() instead of strdup()
        resolve_ref(): do not follow incorrectly-formatted symbolic refs
        resolve_ref(): extract a function get_packed_ref()
        resolve_ref(): turn buffer into a proper string as soon as possible
        resolve_ref(): only follow a symlink that contains a valid, normalized refname
        resolve_ref(): use prefixcmp()
        resolve_ref(): explicitly fail if a symlink is not readable
        Change check_refname_format() to reject unnormalized refnames
        Inline function refname_format_print()
        Make collapse_slashes() allocate memory for its result
        Do not allow ".lock" at the end of any refname component
        Refactor check_refname_format()
        Change check_ref_format() to take a flags argument
        Change bad_ref_char() to return a boolean value
        ...
      9bd50004
    • J
      Merge branch 'mh/iterate-refs' · 11fa5099
      Junio C Hamano 提交于
      * mh/iterate-refs:
        refs.c: make create_cached_refs() static
        Retain caches of submodule refs
        Store the submodule name in struct cached_refs
        Allocate cached_refs objects dynamically
        Change the signature of read_packed_refs()
        Access reference caches only through new function get_cached_refs()
        Extract a function clear_cached_refs()
      11fa5099
    • J
      Merge branch 'jm/mergetool-pathspec' · 5fbdb9c2
      Junio C Hamano 提交于
      * jm/mergetool-pathspec:
        mergetool: no longer need to save standard input
        mergetool: Use args as pathspec to unmerged files
      5fbdb9c2
    • J
      Merge branch 'jc/maint-diffstat-numstat-context' · 7ddd5824
      Junio C Hamano 提交于
      * jc/maint-diffstat-numstat-context:
        diff: teach --stat/--numstat to honor -U$num
      7ddd5824
    • J
      Merge branch 'mz/remote-rename' · 034a8a0d
      Junio C Hamano 提交于
      * mz/remote-rename:
        remote: only update remote-tracking branch if updating refspec
        remote rename: warn when refspec was not updated
        remote: "rename o foo" should not rename ref "origin/bar"
        remote: write correct fetch spec when renaming remote 'remote'
      034a8a0d
    • J
      Merge branch 'cb/common-prefix-unification' · ca3ef81a
      Junio C Hamano 提交于
      * cb/common-prefix-unification:
        rename pathspec_prefix() to common_prefix() and move to dir.[ch]
        consolidate pathspec_prefix and common_prefix
        remove prefix argument from pathspec_prefix
      ca3ef81a
    • J
      Merge branch 'jn/maint-http-error-message' · 9488c189
      Junio C Hamano 提交于
      * jn/maint-http-error-message:
        http: avoid empty error messages for some curl errors
        http: remove extra newline in error message
      9488c189
    • J
      Merge branch 'hv/submodule-update-none' · 61f9db7a
      Junio C Hamano 提交于
      * hv/submodule-update-none:
        add update 'none' flag to disable update of submodule by default
        submodule: move update configuration variable further up
      61f9db7a
    • J
      Merge branch 'fg/submodule-git-file-git-dir' · efc5fb6a
      Junio C Hamano 提交于
      * fg/submodule-git-file-git-dir:
        Move git-dir for submodules
        rev-parse: add option --resolve-git-dir <path>
      
      Conflicts:
      	cache.h
      	git-submodule.sh
      efc5fb6a
    • B
    • B
      refs.c: abort ref search if ref array is empty · 68729696
      Brandon Casey 提交于
      The bsearch() implementation on IRIX 6.5 segfaults if it is passed NULL
      for the base array argument even if number-of-elements is zero.  So, let's
      work around it by detecting an empty array and aborting early.
      
      This is a useful optimization in its own right anyway, since we avoid a
      useless allocation and initialization of the ref_entry when the ref array
      is empty.
      Signed-off-by: NBrandon Casey <casey@nrlssc.navy.mil>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      68729696
    • B
      refs.c: ensure struct whose member may be passed to realloc is initialized · 43d20a8c
      Brandon Casey 提交于
      The variable "refs" is allocated on the stack but is not initialized.  It
      is passed to read_packed_refs(), and its struct members may eventually be
      passed to add_ref() and ALLOC_GROW().  Since the structure has not been
      initialized, its members may contain random non-zero values.  So let's
      initialize it.
      
      The call sequence looks something like this:
      
         resolve_gitlink_packed_ref(...) {
      
             struct cached_refs refs;
             ...
             read_packed_refs(f, &refs);
             ...
         }
      
         read_packed_refs(FILE*, struct cached_refs *cached_refs) {
             ...
             add_ref(name, sha1, flag, &cached_refs->packed, &last);
             ...
         }
      
         add_ref(..., struct ref_array *refs, struct ref_entry **) {
             ...
             ALLOC_GROW(refs->refs, refs->nr + 1, refs->alloc);
         }
      Signed-off-by: NBrandon Casey <casey@nrlssc.navy.mil>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      43d20a8c
  2. 10 10月, 2011 3 次提交
  3. 06 10月, 2011 19 次提交