Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: v0.99.7c
Commits on Sep 24, 2005
  1. GIT 0.99.7c

    Junio C Hamano authored
    Contains the following post-0.99.7b fixes:
    
     - rsh.c string termination fix by H. Peter Anvin
     - further fetch fixes by Sergey Vlasov
     - diff-tree documentation by Robert Watson.
     - 'git diff --cached' synonymous to 'git diff --cached HEAD'.
     - subprocess.py licensing status clarification.
    
    Signed-off-by: Junio C Hamano <junkio@cox.net>
  2. Really ignore generated distribution material.

    Junio C Hamano authored
    Signed-off-by: Junio C Hamano <junkio@cox.net>
    (cherry picked from e558e33 commit)
  3. Merge 'fixes' branch

    Junio C Hamano authored
    Signed-off-by: Junio C Hamano <junkio@cox.net>
  4. Further clarify licensing status of compat/subprocess.py.

    Junio C Hamano authored
    PSF license explicitly states the files in Python distribution is
    compatible with GPL, and upstream clarified the licensing terms by
    shortening its file header.  This version is a verbatim copy from
    release24-maint branch form Python CVS.
    
    Signed-off-by: Junio C Hamano <junkio@cox.net>
  5. [PATCH] rsh.c unterminated string

    H. Peter Anvin authored Junio C Hamano committed
    The change I made to rsh.c would leave the string unterminated under
    certain conditions, which unfortunately always applied!  This patch
    fixes this.  For some reason this never bit on i386 or ppc, but bit me
    on x86-64.
    
    Fix situation where the buffer was not properly null-terminated.
    
    Signed-off-by: H. Peter Anvin <hpa@zytor.com>
    Signed-off-by: Junio C Hamano <junkio@cox.net>
Commits on Sep 23, 2005
  1. Sergey Vlasov

    [PATCH] git-local-fetch: Avoid confusing error messages on packed rep…

    sigprof authored Junio C Hamano committed
    …ositories
    
    If the source repository was packed, and git-local-fetch needed to
    fetch a pack file, it spewed a misleading error message about not
    being able to find the unpacked object.  Fixed by adding the
    warn_if_not_exists argument to copy_file(), which controls printing
    of error messages in case the source file does not exist.
    
    Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>
    Signed-off-by: Junio C Hamano <junkio@cox.net>
  2. Sergey Vlasov

    [PATCH] Fix "git-local-fetch -s" with packed source repository

    sigprof authored Junio C Hamano committed
    "git-local-fetch -s" did not work with a packed repository, because
    symlink() happily created a link to a non-existing object file,
    therefore fetch_file() always returned success, and fetch_pack() was
    not called.  Fixed by calling stat() before symlink() to ensure the
    file really exists.
    
    Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>
    Signed-off-by: Junio C Hamano <junkio@cox.net>
  3. Sergey Vlasov

    [PATCH] git-local-fetch: Avoid calling close(-1)

    sigprof authored Junio C Hamano committed
    After open() failure, copy_file() called close(ifd) with ifd == -1
    (harmless, but causes Valgrind noise).  The same thing was possible
    for the destination file descriptor.
    
    Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>
    Signed-off-by: Junio C Hamano <junkio@cox.net>
  4. Sergey Vlasov

    [PATCH] git-local-fetch: Fix error checking and leak in setup_indices()

    sigprof authored Junio C Hamano committed
    setup_indices() did not check the return value of opendir(), and
    did not have a corresponding closedir() call.
    
    Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>
    Signed-off-by: Junio C Hamano <junkio@cox.net>
  5. Sergey Vlasov

    [PATCH] fetch.c: Plug memory leak in process_tree()

    sigprof authored Junio C Hamano committed
    When freeing a tree entry, must free its name too.
    
    Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>
    Signed-off-by: Junio C Hamano <junkio@cox.net>
  6. Sergey Vlasov

    [PATCH] fetch.c: Do not build object ref lists

    sigprof authored Junio C Hamano committed
    The fetch code does not need object ref lists; by disabling them we
    can save some time and memory.
    
    Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>
    Signed-off-by: Junio C Hamano <junkio@cox.net>
  7. [PATCH] document command to show diff of a commit

    Robert Watson authored Junio C Hamano committed
    Document the best way to show the change introduced by a
    commit, based on the suggestion by Linus on the list.
    
    Signed-off-by: Junio C Hamano <junkio@cox.net>
  8. Ignore a bit more generated files.

    Junio C Hamano authored
    Signed-off-by: Junio C Hamano <junkio@cox.net>
  9. Make 'git diff --cached' synonymous to 'git diff --cached HEAD'.

    Junio C Hamano authored
    When making changes to different files (i.e. dirty working tree) and
    committing logically separate changes in groups, often it is necessary
    to run 'git diff --cached HEAD' to make sure that the changes being
    committed makes sense.  Saying 'git diff --cached' by mistake gives
    rather uninformative error message from git-diff-files complaining it
    does not understand --cached flag.
    
    Signed-off-by: Junio C Hamano <junkio@cox.net>
  10. GIT 0.99.7b

    Junio C Hamano authored
    Signed-off-by: Junio C Hamano <junkio@cox.net>
  11. Merge branch 'fixes'

    Junio C Hamano authored
  12. Sergey Vlasov

    [PATCH] fetch.c: Remove call to parse_object() from process()

    sigprof authored Junio C Hamano committed
    The call to parse_object() in process() is not actually needed - if
    the object type is unknown, parse_object() will be called by loop();
    if the type is known, the object will be parsed by the appropriate
    process_*() function.
    
    After this change blobs which exist locally are no longer parsed,
    which gives about 2x CPU usage improvement; the downside is that there
    will be no warnings for existing corrupted blobs, but detecting such
    corruption is the job of git-fsck-objects, not the fetch programs.
    Newly fetched objects are still checked for corruption in http-fetch.c
    and ssh-fetch.c (local-fetch.c does not seem to do it, but the removed
    parse_object() call would not be reached for new objects anyway).
    
    Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>
    Signed-off-by: Junio C Hamano <junkio@cox.net>
  13. Sergey Vlasov

    [PATCH] fetch.c: Clean up object flag definitions

    sigprof authored Junio C Hamano committed
    Remove holes left after deleting flags, and use shifts to emphasize
    that flags are single bits.
    
    Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>
    Signed-off-by: Junio C Hamano <junkio@cox.net>
  14. Sergey Vlasov

    [PATCH] fetch.c: Remove redundant test of TO_SCAN in process()

    sigprof authored Junio C Hamano committed
    If the SEEN flag was not set, the TO_SCAN flag cannot be set,
    therefore testing it is pointless.
    
    Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>
    Signed-off-by: Junio C Hamano <junkio@cox.net>
  15. Sergey Vlasov

    [PATCH] fetch.c: Remove some duplicated code in process()

    sigprof authored Junio C Hamano committed
    It does not matter if we call prefetch() or set the TO_SCAN flag before
    or after adding the object to process_queue.  However, doing it before
    object_list_insert() allows us to kill 3 lines of duplicated code.
    
    Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>
    Signed-off-by: Junio C Hamano <junkio@cox.net>
  16. Sergey Vlasov

    [PATCH] fetch.c: Remove redundant TO_FETCH flag

    sigprof authored Junio C Hamano committed
    The TO_FETCH flag also became redundant after adding the SEEN flag -
    it was set and checked in process() to prevent adding the same object
    to process_queue multiple times, but now SEEN guards against this.
    
    Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>
    Signed-off-by: Junio C Hamano <junkio@cox.net>
  17. Sergey Vlasov

    [PATCH] fetch.c: Remove redundant SCANNED flag

    sigprof authored Junio C Hamano committed
    After adding the SEEN flag, the SCANNED flag became obviously
    redundant - each object can get into process_queue through process()
    only once, and therefore multiple calls to process_object() for the
    same object are not possible.
    
    Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>
    Signed-off-by: Junio C Hamano <junkio@cox.net>
  18. Sergey Vlasov

    [PATCH] fetch.c: Make process() look at each object only once

    sigprof authored Junio C Hamano committed
    The process() function is very often called multiple times for the
    same object (because lots of trees refer to the same blobs), but did
    not have a fast check for this, therefore a lot of useless calls to
    has_sha1_file() and parse_object() were made before discovering that
    nothing needs to be done.
    
    This patch adds the SEEN flag which is used in process() to make it
    look at each object only once.  When testing git-local-fetch on the
    repository of GIT, this gives a 14x improvement in CPU usage (mainly
    because the redundant calls to parse_object() are now avoided -
    parse_object() always unpacks and parses the object data, even if it
    was already parsed before).
    
    Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>
    Signed-off-by: Junio C Hamano <junkio@cox.net>
  19. Sergey Vlasov

    [PATCH] fetch.c: Remove useless lookup_object_type() call in process()

    sigprof authored Junio C Hamano committed
    In all places where process() is called except the one in pull() (which
    is executed only once) the pointer to the object is already available,
    so pass it as the argument to process() instead of sha1 and avoid an
    unneeded call to lookup_object_type().
    
    Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>
    Signed-off-by: Junio C Hamano <junkio@cox.net>
  20. Do not give alarming error message from rsync in fetch and clone.

    Junio C Hamano authored
    When we check the optional objects/info/alternates file at the remote
    repository, we forgot to really squelch error message from rsync.
    
    Not having that file is not a crime.
    
    Signed-off-by: Junio C Hamano <junkio@cox.net>
    (cherry picked from 89d844d commit)
Commits on Sep 21, 2005
  1. Fix documentation dependency.

    Junio C Hamano authored
    Randal L. Schwartz noticed that 'make install' does not rebuild what
    is installed.  Make the 'install' rule depend on 'man'.
    
    I noticed also 'touch' of the source files were used to express include
    dependencies, which is a no-no.  Rewrite it to do dependencies properly,
    and add missing include dependencies while we are at it.
    
    Signed-off-by: Junio C Hamano <junkio@cox.net>
  2. Make object creation in http fetch a bit safer.

    Junio C Hamano authored
    Unlike write_sha1_file() that tries to create the object file in a
    temporary location and then move it to the final location, fetch_object
    could have been interrupted in the middle, leaving a corrupt file.
    
    Signed-off-by: Junio C Hamano <junkio@cox.net>
  3. Clarify dual license status of subprocess.py file.

    Junio C Hamano authored
    The author of the file we stole from Python 2.4 distribution, Peter
    Astrand <astrand@lysator.liu.se>, OK'ed to add this at the end of the
    licensing terms section of the file:
    
        Use of this file within git is permitted under GPLv2.
    
    Signed-off-by: Junio C Hamano <junkio@cox.net>
  4. Merge branch 'fixes'

    Junio C Hamano authored
Commits on Sep 20, 2005
  1. Fix extended short SHA1 name completion

    Linus Torvalds authored Junio C Hamano committed
    get_sha1() would not do sha1 completion of short SHA1's when they were
    part of a more complex expression.  So doing
    
    	git-rev-parse 7271328^
    
    would work, and return 87c6aeb. But using
    the shorthand version
    
    	git-rev-list 72713^
    
    wouldn't work.
    
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>
    Signed-off-by: Junio C Hamano <junkio@cox.net>
  2. GIT 0.99.7a

    Junio C Hamano authored
    Signed-off-by: Junio C Hamano <junkio@cox.net>
  3. Ship our own copy of subprocess.py

    Junio C Hamano authored
    so people without the latest Python could run merge-recursive.
    
    Signed-off-by: Junio C Hamano <junkio@cox.net>
  4. show-branch: Be nicer when running in a corrupt repository.

    Junio C Hamano authored
    We may end up trying to print a commit we do not actually have but we
    know about its existence only because another commit we do have refers
    to it.
    
    Signed-off-by: Junio C Hamano <junkio@cox.net>
    (cherry picked from b204feab9371040982d2c60611925e7693106c84 commit)
  5. [PATCH] Fix git-init-db creating crap directories.

    Petr Baudis authored Junio C Hamano committed
    The base target directory for the templates copying was initialized
    to git_dir, but git_dir[len] is not zero but / at the time we do the
    initialization. This is not what we want for our target directory string
    since we pass it to mkdir(), so make it zero-terminated manually.
    
    Signed-off-by: Petr Baudis <pasky@suse.cz>
    Signed-off-by: Junio C Hamano <junkio@cox.net>
  6. [PATCH] Do not install compatibility symlink for what we do not install

    Patrick Mauritz authored Junio C Hamano committed
    We sometimes do not install git-send-email nor git-http-pull; do not
    unconditionally create symlinks to them.
    
    Signed-off-by: Patrick Mauritz <oxygene@studentenbude.ath.cx>
    Signed-off-by: Junio C Hamano <junkio@cox.net>
Something went wrong with that request. Please try again.