Commits

Author Commit Message Labels Comments Date
Petr Baudis
[PATCH] Consolidate the error handling Now there is error() for "library" errors and die() for fatal "application" errors. usage() is now used strictly only for usage errors. Signed-off-by: Petr Baudis <pasky@ucw.cz>
Petr Baudis
[PATCH] Make nsec checking optional The nsec field of ctime/mtime is now checked only with -DNSEC defined during compilation. nsec acts broken since it is stored in the icache but apparently just gets to zero when flushed to filesystem not supporting it (e.g. ext3), creating illusions of false changes. At least that's my impression. Signed-off-by: Petr Baudis <pasky@ucw.cz>
Petr Baudis
[PATCH] SHA1 naive collision checking When compiled with -DCOLLISION_CHECK, we will check against SHA1 collisions when writing to the object database. From: Christopher Li <chrislgit@chrisli.org> Signed-off-by: Petr Baudis <pasky@ucw.cz>
Petr Baudis
[PATCH] ls-tree for listing trees ls-tree tool provides just a way to export the binary tree objects to a usable text format. This is bound to be useful in variety of scripts, although none of those I have currently uses it. But e.g. the simple script I've sent to HPA for purging the object database uses it. Signed-off-by: Petr Baudis <pasky@ucw.cz>
Petr Baudis
[PATCH] Correct show-diff output for deleted files My convention is that contrary to files trimmed to zero size, deleted files always go to /dev/null. This patch turns show-diff to abide this. Signed-off-by: Petr Baudis <pasky@ucw.cz>
Petr Baudis
[PATCH] Silent flag for show-diff This patch adds a -s flag for show-diff, which will surpress the actual diffing. This is useful for my scripts when they just want to see what needs to be updated in the cache. Signed-off-by: Petr Baudis <pasky@ucw.cz>
Petr Baudis
[PATCH] Fix a crash when doing rev-tree In parse_commit(), free(buffer) is fed a bogus pointer. Signed-off-by: Petr Baudis <pasky@ucw.cz> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Linus Torvalds
Make "checkout-cache" silently skip up-to-date files. It used to always overwrite them if forced. Now it just realizes that they are already ok, and don't need to be touched.
Linus Torvalds
Make "rev-tree" able to read its own output again from the cache. Also, add "date" information to the output so that you can do something like this: rev-tree `cat .git/HEAD` | sort -nr | cut -d' ' -f2 | while read i; do cat-file commit $i; done which basically becomes a "git log" (aka "git changes") where things are sorted by time.
David Woodhouse
[PATCH] rev-tree support for "in X but not in Y". To do the automated commit-mailing I need to be able to answer the question "which commits are here today but weren't yesterday"... i.e. given two commit-ids $HEAD and $YESTERDAY I want to be able to do: rev-tree $HEAD ^$YESTERDAY to list those commits which are in the tree now but weren't ancestors of yesterday's head. Yes, I could probably do this with rev-tree $HEAD $YESTERDAY | egrep -…
Christopher Li
[PATCH] show-diff show deleted files as diff as well. The ideas is that using the show-diff to generate the patch including deleted and new file (in the next patch). So we don't have to do the temp new file diff dance on the script. The cache index now contain enough information to generate the whole patch. So the GIT SCM don't need separate command for check out file to edit or delete. Just do the edit and remove and GIT will generate the correct p…
Linus Torvalds
Remove the annoying "ok" printout from show-diff. It used to be useful before I wrote "show-files", so that show-diff would also tell what the cached files were. Now it's just annoying.
Linus Torvalds
Add "applypatch" and "dotest" scripts to tie it all together. This should be getting it all pretty close to a working setup.
Linus Torvalds
Add a "check-files" command, which is useful for scripting patches. In particular, it verifies that all the listed files are up-to-date in the cache (or don't exist and are ready to be added).
Linus Torvalds
Start of early patch applicator tools for git. I looked a bit at my old BK tools for the same thing, but they were just so horrid in many ways that I largely rewrote it all and these tools do things a bit differently. Instead of aggressively piping data from one process to another (which was clever but very hard to follow), this first just splits out the mbox into many smaller email files, and then does some scripts on these temporary files.
Linus Torvalds
Add "show-files" command to show the list of managed (or non-managed) files. You want things like this to check in a patch..
Linus Torvalds
Allow zero-sized files to be checked in. The kernel may not want it, but others probably do. Noted (again) by Junio Hamano.
Linus Torvalds
Make the rev-tree output more regular. This is the last change. Promise. It now always outputs all the revisions as <sha1>:<reachability>, where the reachability is the bitmask of how that revision was reachable from the commits in the argument list. Trivially, if there is only one commit, the reachability will always be (1 << 0) == 1 for all reachable revisions, and there won't be any edges (so the "--edges" flag only makes sense with multiple commit keys).
Linus Torvalds
Make "rev-tree" capable of showing the difference in reachability between two or more commit points. This is important both to know what the difference between two commit points is, but also to figure out where to try to merge from.
Linus Torvalds
Make "rev-tree" more efficient and more useful. Slight change of output format: it now lists all parents on the same line. This allows it to work on initial commits too (which have no parents), and also makes the output format a lot more intuitive.
Linus Torvalds
Rename ".dircache" directory to ".git" I started out calling the tool "dircache". That's clearly moronic.
Linus Torvalds
Fix stale index.lock file removal using "atexit()". Problem noted by Randy Dunlap.
Linus Torvalds
Add a "rev-tree" helper, which calculates the revision tree graph. It's quite fast when the commit-objects are cached, but since it has to walk every single commit-object, it also allows you to cache an old state and just add on top of that.
Linus Torvalds
Fix "usage()" to do the missing line termination. It got broken when I changed it to use stdarg.
Linus Torvalds
Fix "update-cache" not fixing up the size field as appropriate. The size field isn't in the tree information, so we need to update it if the sha1 matches.
Linus Torvalds
Make the default directory permissions more lax. After all, if you want to not allow others to read your stuff, set your "umask" appropriately or make sure the parent directories aren't readable/executable.
Linus Torvalds
Add a COPYING notice, making it explicit that the license is GPLv2. Let's bite the v3 bullet when it comes, although if people want to, they can just state "or later at discretion of Linus" in their copyright messages.
Linus Torvalds
Make "update-cache --refresh" do what it really should do: just refresh the "stat" information. We need this after having done a "read-tree", for example, when the stat information does not match the checked-out tree, and we want to start getting efficient cache matching against the parts of the tree that are already up-to-date.
Linus Torvalds
Fix up commit-tree/diff-tree user interface issues. No, this doesn't make them easy to use, but makes diff-tree use the "-r" flag for "recursive" (not "-R") and makes commit-tree use AUTHOR_xxx environment flags (not COMMITTER_xxx) to match what it actually does.
Linus Torvalds
Oops. Fix bad initialization of the "seen" array, causing us to not properly clear the reference count at init time. It happened to work for me by pure luck. Until it broke, and my unreferenced commit suddenly looked referenced again. Fixed.
  1. Prev
  2. Next