1. 06 6月, 2006 9 次提交
  2. 05 6月, 2006 1 次提交
  3. 04 6月, 2006 8 次提交
    • J
      Merge branch 'lt/tree-2' · 16a4c6ee
      Junio C Hamano 提交于
      * lt/tree-2:
        fetch.c: do not call process_tree() from process_tree().
        tree_entry(): new tree-walking helper function
        adjust to the rebased series by Linus.
        Remove "tree->entries" tree-entry list from tree parser
        Switch "read_tree_recursive()" over to tree-walk functionality
        Make "tree_entry" have a SHA1 instead of a union of object pointers
        Add raw tree buffer info to "struct tree"
        Remove last vestiges of generic tree_entry_list
        Convert fetch.c: process_tree() to raw tree walker
        Convert "mark_tree_uninteresting()" to raw tree walker
        Remove unused "zeropad" entry from tree_list_entry
        fsck-objects: avoid unnecessary tree_entry_list usage
        Remove "tree->entries" tree-entry list from tree parser
        builtin-read-tree.c: avoid tree_entry_list in prime_cache_tree_rec()
        Switch "read_tree_recursive()" over to tree-walk functionality
        Make "tree_entry" have a SHA1 instead of a union of object pointers
        Make "struct tree" contain the pointer to the tree buffer
      16a4c6ee
    • J
      Merge branch 'sp/reflog' · f0679f47
      Junio C Hamano 提交于
      * sp/reflog:
        fetch.c: do not pass uninitialized lock to unlock_ref().
        Test that git-branch -l works.
        Verify git-commit provides a reflog message.
        Enable ref log creation in git checkout -b.
        Create/delete branch ref logs.
        Include ref log detail in commit, reset, etc.
        Change order of -m option to update-ref.
        Correct force_write bug in refs.c
        Change 'master@noon' syntax to 'master@{noon}'.
        Log ref updates made by fetch.
        Force writing ref if it doesn't exist.
        Added logs/ directory to repository layout.
        General ref log reading improvements.
        Fix ref log parsing so it works properly.
        Support 'master@2 hours ago' syntax
        Log ref updates to logs/refs/<ref>
        Convert update-ref to use ref_lock API.
        Improve abstraction of ref lock/write.
      f0679f47
    • J
      Merge branch 'ff/svnimport' · 731651fe
      Junio C Hamano 提交于
      * ff/svnimport:
        git-svnimport: Improved detection of merges.
      731651fe
    • J
      read-tree --reset: update working tree file for conflicted paths. · b0d6e646
      Junio C Hamano 提交于
      The earlier "git reset --hard" simplification stopped removing
      leftover working tree files from a failed automerge, when
      switching back to the HEAD version that does not have the
      paths.
      
      This patch, instead of removing the unmerged paths from the
      index, drops them down to stage#0 but marks them with mode=0
      (the same "to be deleted" marker we internally use for paths
      deleted by the merge).  one_way_merge() function and the
      functions it calls already know what to do with them -- if the
      tree we are reading has the path the working tree file is
      overwritten, and if it doesn't the working tree file is
      removed.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      b0d6e646
    • J
      Merge branch 'jc/fmt-patch' · bf41bf2d
      Junio C Hamano 提交于
      * jc/fmt-patch:
        Update documentation for git-format-patch
        format-patch: resurrect extra headers from config
        format-patch --signoff
      bf41bf2d
    • H
      Documentation: Spelling fixes · abda1ef5
      Horst H. von Brand 提交于
      Signed-off-by: NHorst H. von Brand <vonbrand@inf.utfsm.cl>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      abda1ef5
    • C
      Builtin git-rev-parse. · 895f10c3
      Christian Couder 提交于
      Signed-off-by: NChristian Couder <chriscool@tuxfamily.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      895f10c3
    • J
      fetch: do not report "same" unless -verbose. · ea5aeb07
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      ea5aeb07
  4. 03 6月, 2006 6 次提交
    • J
      Merge branch 'ds/doc' into jc/fmt-patch · 2f164c35
      Junio C Hamano 提交于
      * ds/doc:
        Update documentation for git-format-patch
        sha1_file: avoid re-preparing duplicate packs
        handle concurrent pruning of packed objects
        http: prevent segfault during curl handle reuse
        Remove possible segfault in http-fetch.
        gitk: show_error fix
        [PATCH] gitk: start-up bugfix
        [PATCH] gitk: Replace "git-" commands with "git "
        [PATCH] gitk: Display commit messages with word wrap
        gitk: Fix bug where page-up/down wouldn't always work properly
        gitk: Fix display of "(...)" for parents/children we haven't drawn
        send-email: only 'require' instead of 'use' Net::SMTP
        Allow multiple -m options to git-commit.
      2f164c35
    • D
      Update documentation for git-format-patch · 2052d146
      Dennis Stosberg 提交于
      [jc: adjusted for recently resurrected features]
      Signed-off-by: NDennis Stosberg <dennis@stosberg.net>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      2052d146
    • J
      fetch.c: do not call process_tree() from process_tree(). · 6f9012b6
      Junio C Hamano 提交于
      This function reads a freshly fetched tree object, and schedules
      the objects pointed by it for further fetching, so doing
      lookup_tree() and process_tree() recursively from there does not
      make much sense.  We need to use process() on it to make sure we
      fetch it first, and leave the recursive processing to later
      stages.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      6f9012b6
    • J
      sha1_file: avoid re-preparing duplicate packs · 86f7780c
      Jeff King 提交于
      When adding packs, skip the pack if we already have it in the packed_git
      list. This might happen if we are re-preparing our packs because of a
      missing object.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      86f7780c
    • J
      handle concurrent pruning of packed objects · 637cdd9d
      Jeff King 提交于
      This patch causes read_sha1_file and sha1_object_info to re-examine the
      list of packs if an object cannot be found. It works by re-running
      prepare_packed_git() after an object fails to be found.
      
      It does not attempt to clean up the old pack list. Old packs which are in
      use can continue to be used (until unused by lru selection).  New packs
      are placed at the front of the list and will thus be examined before old
      packs.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      637cdd9d
    • J
      Merge branch 'nh/http' · 31262627
      Junio C Hamano 提交于
      * nh/http:
        http: prevent segfault during curl handle reuse
        Remove possible segfault in http-fetch.
      31262627
  5. 02 6月, 2006 1 次提交
  6. 01 6月, 2006 7 次提交
  7. 31 5月, 2006 5 次提交
    • S
      Improved pack format documentation. · 1361fa3e
      Shawn Pearce 提交于
      While trying to implement a pack reader in Java I was mislead by
      some facts listed in this documentation as well as found a few
      details to be missing about the pack header.
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      1361fa3e
    • L
      tree_entry(): new tree-walking helper function · 4c068a98
      Linus Torvalds 提交于
      This adds a "tree_entry()" function that combines the common operation of
      doing a "tree_entry_extract()" + "update_tree_entry()".
      
      It also has a simplified calling convention, designed for simple loops
      that traverse over a whole tree: the arguments are pointers to the tree
      descriptor and a name_entry structure to fill in, and it returns a boolean
      "true" if there was an entry left to be gotten in the tree.
      
      This allows tree traversal with
      
      	struct tree_desc desc;
      	struct name_entry entry;
      
      	desc.buf = tree->buffer;
      	desc.size = tree->size;
      	while (tree_entry(&desc, &entry) {
      		... use "entry.{path, sha1, mode, pathlen}" ...
      	}
      
      which is not only shorter than writing it out in full, it's hopefully less
      error prone too.
      
      [ It's actually a tad faster too - we don't need to recalculate the entry
        pathlength in both extract and update, but need to do it only once.
        Also, some callers can avoid doing a "strlen()" on the result, since
        it's returned as part of the name_entry structure.
      
        However, by now we're talking just 1% speedup on "git-rev-list --objects
        --all", and we're definitely at the point where tree walking is no
        longer the issue any more. ]
      
      NOTE! Not everybody wants to use this new helper function, since some of
      the tree walkers very much on purpose do the descriptor update separately
      from the entry extraction. So the "extract + update" sequence still
      remains as the core sequence, this is just a simplified interface.
      
      We should probably add a silly two-line inline helper function for
      initializing the descriptor from the "struct tree" too, just to cut down
      on the noise from that common "desc" initializer.
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      4c068a98
    • D
      git_exec_path, execv_git_cmd: ignore empty environment variables · 2b601626
      Dmitry V. Levin 提交于
      Ignoring empty environment variables is good common practice.
      Ignoring --exec-path with empty argument won't harm, too:
      if user means current directory, there is a "--exec-path=."
      Signed-off-by: NDmitry V. Levin <ldv@altlinux.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      2b601626
    • D
      execv_git_cmd: Fix stack buffer overflow. · d6859901
      Dmitry V. Levin 提交于
      Signed-off-by: NDmitry V. Levin <ldv@altlinux.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      d6859901
    • S
      Fixed Cygwin CR-munging problem in mailsplit · 347f1d26
      Salikh Zakirov 提交于
      Do not open mailbox file as fopen(..., "rt")
      as this strips CR characters from the diff,
      thus breaking the patch context for changes
      in CRLF files.
      Signed-off-by: NSalikh Zakirov <Salikh.Zakirov@Intel.com>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      347f1d26
  8. 30 5月, 2006 3 次提交