Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Sep 11, 2005

  1. [PATCH] Add a function for getting a struct tree for an ent.

    Signed-off-by: Daniel Barkalow <barkalow@iabervon.org>
    Signed-off-by: Junio C Hamano <junkio@cox.net>
    authored September 05, 2005 Junio C Hamano committed September 10, 2005

Jul 28, 2005

  1. git-fsck-cache: be stricter about "tree" objects

    In particular, warn about things like zero-padding of the mode bits,
    which is a big no-no, since it makes otherwise identical trees have
    different representations (and thus different SHA1 numbers).
    
    Also make the warnings more regular.
    
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>
    authored July 27, 2005 Junio C Hamano committed July 27, 2005

Jul 14, 2005

  1. Fix up read_tree() pathspec matching to use "const char **"

    The same way the other pathspecs work.  Also fix missing success return
    from the matching - not that anything actually uses this yet ;)
    authored July 14, 2005
  2. Start adding interfaces to read in partial trees

    The same way "git-diff-tree" can limit its output to just a set of matches,
    we can read in just a partial tree for comparison purposes.
    authored July 14, 2005

Jun 25, 2005

  1. [PATCH] Fix oversimplified optimization for add_cache_entry().

    An earlier change to optimize directory-file conflict check
    broke what "read-tree --emu23" expects.  This is fixed by this
    commit.
    
    (1) Introduces an explicit flag to tell add_cache_entry() not to
        check for conflicts and use it when reading an existing tree
        into an empty stage --- by definition this case can never
        introduce such conflicts.
    
    (2) Makes read-cache.c:has_file_name() and read-cache.c:has_dir_name()
        aware of the cache stages, and flag conflict only with paths
        in the same stage.
    
    Signed-off-by: Junio C Hamano <junkio@cox.net>
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>
    authored June 25, 2005 Linus Torvalds committed June 25, 2005

Jun 08, 2005

  1. [PATCH] Anal retentive 'const unsigned char *sha1'

    Make 'sha1' parameters const where possible
    
    Signed-off-by: Jason McMullan <jason.mcmullan@timesys.com>
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>
    authored June 03, 2005 Linus Torvalds committed June 08, 2005

May 29, 2005

  1. [PATCH] Rewrite ls-tree to behave more like "/bin/ls -a"

    This is a complete rewrite of ls-tree to make it behave more
    like what "/bin/ls -a" does in the current working directory.
    
    Namely, the changes are:
    
     - Unlike the old ls-tree behaviour that used paths arguments to
       restrict output (not that it worked as intended---as pointed
       out in the mailing list discussion, it was quite incoherent),
       this rewrite uses paths arguments to specify what to show.
    
     - Without arguments, it implicitly uses the root level as its
       sole argument ("/bin/ls -a" behaves as if "." is given
       without argument).
    
     - Without -r (recursive) flag, it shows the named blob (either
       file or symlink), or the named tree and its immediate
       children.
    
     - With -r flag, it shows the named path, and recursively
       descends into it if it is a tree.
    
     - With -d flag, it shows the named path and does not show its
       children even if the path is a tree, nor descends into it
       recursively.
    
    This is still request-for-comments patch.  There is no mailing
    list consensus that this proposed new behaviour is a good one.
    
    The patch to t/t3100-ls-tree-restrict.sh illustrates
    user-visible behaviour changes.  Namely:
    
     * "git-ls-tree $tree path1 path0" lists path1 first and then
       path0.  It used to use paths as an output restrictor and
       showed output in cache entry order (i.e. path0 first and then
       path1) regardless of the order of paths arguments.
    
     * "git-ls-tree $tree path2" lists path2 and its immediate
       children but having explicit paths argument does not imply
       recursive behaviour anymore, hence paths/baz is shown but not
       paths/baz/b.
    
    Signed-off-by: Junio C Hamano <junkio@cox.net>
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>
    authored May 28, 2005 Linus Torvalds committed May 29, 2005

May 20, 2005

  1. [PATCH] delta check

    This adds knowledge of delta objects to fsck-cache and various object
    parsing code.  A new switch to git-fsck-cache is provided to display the
    maximum delta depth found in a repository.
    
    Signed-off-by: Nicolas Pitre <nico@cam.org>
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>
    authored May 20, 2005 Linus Torvalds committed May 20, 2005

May 11, 2005

  1. Jonas Fonseca

    [PATCH] read_tree_recursive(): Fix leaks

    Fix two potential leaks.
    
    Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
    Signed-off-by: Petr Baudis <pasky@ucw.cz>
    authored April 27, 2005 Petr Baudis committed May 11, 2005

May 08, 2005

  1. Add git-update-cache --replace option.

    When "path" exists as a file or a symlink in the index, an
    attempt to add "path/file" is refused because it results in file
    vs directory conflict.  Similarly when "path/file1",
    "path/file2", etc. exist, an attempt to add "path" as a file or
    a symlink is refused.  With git-update-cache --replace, these
    existing entries that conflict with the entry being added are
    automatically removed from the cache, with warning messages.
    
    Signed-off-by: Junio C Hamano <junkio@cox.net>
    authored May 07, 2005

May 06, 2005

  1. [PATCH] don't load and decompress objects twice with parse_object()

    It turns out that parse_object() is loading and decompressing given
    object to free it just before calling the specific object parsing
    function which does mmap and decompress the same object again. This
    patch introduces the ability to parse specific objects directly from a
    memory buffer.
    
    Without this patch, running git-fsck-cache on the kernel repositorytake:
    
    	real    0m13.006s
    	user    0m11.421s
    	sys     0m1.218s
    
    With this patch applied:
    
    	real    0m8.060s
    	user    0m7.071s
    	sys     0m0.710s
    
    The performance increase is significant, and this is kind of a
    prerequisite for sane delta object support with fsck.
    
    Signed-off-by: Nicolas Pitre <nico@cam.org>
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>
    authored May 06, 2005 Linus Torvalds committed May 06, 2005

May 05, 2005

  1. Be more careful about tree entry modes.

    The tree object parsing used to get the executable bit wrong,
    and didn't know about symlinks. Also, fsck really wants the
    full mode value so that it can verify the other bits for sanity,
    so save it all in struct tree_entry.
    authored May 05, 2005

May 04, 2005

  1. Sergey Vlasov

    [PATCH] Fix memory leaks in git-fsck-cache

    This patch fixes memory leaks in parse_object() and related functions;
    these leaks were very noticeable when running git-fsck-cache.
    
    Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>
    authored May 04, 2005 Linus Torvalds committed May 04, 2005

May 02, 2005

  1. Make fsck-cache do better tree checking.

    We check the ordering of the entries, and we verify that none
    of the entries has a slash in it (this allows us to remove the
    hacky "has_full_path" member from the tree structure, since we
    now just test it by walking the tree entries instead).
    authored May 02, 2005

Apr 26, 2005

  1. [PATCH] introduce xmalloc and xrealloc

    Introduce xmalloc and xrealloc to die gracefully with a descriptive
    message when out of memory, rather than taking a SIGSEGV. 
    
    Signed-off-by: Christopher Li<chrislgit@chrisli.org>
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>
    authored April 26, 2005 Linus Torvalds committed April 26, 2005

Apr 24, 2005

  1. Don't add references to objects we couldn't find.

    That would SIGSEGV.
    authored April 24, 2005
  2. Verify that the object type matches for tree/commit objects even befo…

    …re parsing.
    
    The type doesn't come from the parsing, the type also has to match the usage.
    authored April 24, 2005
  3. Set object type at object creation time, not object parse time.

    Otherwise we can have objects without a type, which is not good.
    authored April 24, 2005
  4. [PATCH] Parse tree objects completely

    This adds the contents of trees to struct tree.
    
    Signed-Off-By: Daniel Barkalow <barkalow@iabervon.org>
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>
    authored April 23, 2005 Linus Torvalds committed April 23, 2005

Apr 22, 2005

  1. Move "read_tree()" to "tree.c" to be used as a generic helper function.

    Next step: make "diff-cache" use it.
    authored April 22, 2005

Apr 18, 2005

  1. [PATCH] Implementations of parsing functions

    This implements the parsing functions.
    
    Signed-Off-By: Daniel Barkalow <barkalow@iabervon.org>
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>
    authored April 18, 2005 Linus Torvalds committed April 18, 2005
Something went wrong with that request. Please try again.