git mailing list

FromSubjectsort iconDate
Martin Waitz
common URL for repository and gitweb
hoi :) I hacked a little bit in gitweb so that it can get the project path form the URI without using a ?p=3D parameter. That is, you can now use "http://.../cgi-bin/gitweb.cgi/path/to/project/" to show the summary of your project. Together with a apache configuration like below, you can give your gitweb pages the same URL as your repositories: <VirtualHost www:80> ServerName git.hostname.org DocumentRoot /pub/git RewriteEngine on RewriteRule ^/(.*\.git/(.*\.html)?)?$ /usr/l...
May 10, 7:00 pm 2006
Elrond
[Patch] git-cvsimport: tiny fix
git-cvsimport: Handle "Removed" from pserver Sometimes the pserver says "Removed" instead of "Remove-entry". Signed-off-by: Elrond <elrond+kernel.org@samba-tng.org> --- Hi, At least the above happened to me on a repository I tried to convert. Without the patch, it just die("Unknown: Removed ...")s. Elrond --- git-cvsimport.perl +++ git-cvsimport.perl @@ -350,7 +350,7 @@ sub _line { return $res; } elsif($line =~ s/^E //) { # print STDERR "S: $line\n"; - }...
May 10, 1:37 pm 2006
Nicolas Pitre
[PATCH] fix diff-delta bad memory access
It cannot be assumed that the given buffer will never be moved when shrinking the allocated memory size with realloc(). So let's ignore that optimization for now. This patch makes Electric Fence happy on Linux. Signed-off-by: Nicolas Pitre <nico@cam.org> --- I can't tell if that fixes it on BSD and Cygwin though. diff --git a/Makefile b/Makefile diff --git a/diff-delta.c b/diff-delta.c index c618875..25a798d 100644 --- a/diff-delta.c +++ b/diff-delta.c @@ -199,7 +199,6 @@ st...
May 10, 12:26 pm 2006
Linus Torvalds
Re: [PATCH] fix diff-delta bad memory access
Yeah, that was totally bogus. It would re-allocate _part_ of an allocation, but that allocation contained not just the index, but all the hashes and the hash entries too! This has nothing to do with moving a buffer - it has everything to do with the fact that you shrunk a buffer that still contained all the other buffers: you shrunk the "mem" allocation to fit just the first part of it, and entirely ignored the "hash" and "entry" parts of it. Btw, I think that whole "allocate everythin...
May 10, 1:00 pm 2006
Nicolas Pitre
Re: [PATCH] fix diff-delta bad memory access
No. The initial allocation assumes a perfectly even distribution of entries in which case the entry array would be all populated. When there are repeated bytes then consecutive blocks will have the same hash, and in that case keeping only the first one is useful. Which means that the entry pointer won't get to the end of the allocated space for all entries and I naively assumed that using realloc would only mark the allocated memory as smaller than it originally was without actually c...
May 10, 1:27 pm 2006
Linus Torvalds
Re: [PATCH] fix diff-delta bad memory access
Btw, Nico, that rabin hash code is _extremely_ confusing. The hash entry pointers point to "data + RABIN_WINDOW", and then to make things even _more_ confusing, the hash calculation code is actually offset by one, so it will have computed the hash with val = ((val << 8) | data[i]) ^ T[val >> RABIN_SHIFT]; where "i" goes from _1_ to RABIN_WINDOW instead of 0..WINDOW-1. So, if I read that correctly, the "entry->ptr" actually points not to the beginning of the data that wa...
May 10, 3:01 pm 2006
Nicolas Pitre
Re: [PATCH] fix diff-delta bad memory access
Yes, ptr points to the last byte of the window for given hash value. This is so because in the matching loop the window is scrolled byte by byte and the new hash value is always made of ROBIN_WINDOW-1 bytes which already have been processed (most probably added as literal bytes in the delta buffer) plus one new byte. So it makes sense to start forward byte matching only from that last byte to find the longest source area to match, especially since all the other bytes in the window are like...
May 10, 3:43 pm 2006
Nicolas Pitre
Re: [PATCH] fix diff-delta bad memory access
And of course s/robin/rabin/ (I can't type RABIN without having my fingers decide on ROBIN by themselves). Nicolas -
May 10, 3:57 pm 2006
Linus Torvalds
Re: [PATCH] fix diff-delta bad memory access
Actually, no, you got that part right. Mea culpa. It really only ended up being a problem when the area was moved, since the pointers into that area weren't updated. The alignment issue is real, but looking at the different structures, they'll all have pointers that end up being the real (and only) alignment constraint, so as a result, on any reasonable machine they all have the same alignment and things are fine. Junio - pls apply Nico's patch asap. It's correct, and fixes a really ...
May 10, 1:18 pm 2006
Jakub Narebski
Re: Implementing branch attributes in git config
On one hand the remotes/ (or older branches/) is similar to refs/heads and refs/tags that it contains shortcut names for pulling and pushing. On the other hand configuration should belong to configuration. Besides, AFAICT we did not have the place to have branch specific configuration (like description, default place to pull from + marking branch as immutable, default place to push to, etc.) and if I understand correctly branches/ was used for something else. refs/heads/`name` stored branches, in...
May 10, 12:03 pm 2006
Jakub Narebski
Re: What's in git.git
If there would be possible to use external grep (like one can use external diff), then lack of some options wouldn't matter. -- Jakub Narebski Warsaw, Poland -
May 10, 2:48 am 2006
Martin Langhoff
[PATCH] cg-status -- disambiguate parameters
Signed-off-by: Martin Langhoff <martin@catalyst.net.nz> --- cg-status | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 81fa6ce82f47e4973b172eddd6bb6f1b2f2bff93 diff --git a/cg-status b/cg-status index 944f9c5..214d6cf 100755 --- a/cg-status +++ b/cg-status @@ -238,7 +238,7 @@ if [ "$workstatus" ]; then git-diff-index HEAD -- "${basepath:-.}" | cut -f5- -d' ' | while IFS=$'\t' read -r mode file; do if [ "$mode" = D ]; then - [ "$(git-diff-files "$file")" ]...
May 10, 1:02 am 2006
Martin Langhoff
Re: What's in git.git
They have seen some limited use in-house -- we don't use Eclipse in-house that much, but that has been the test target. I am currently looking for a machine with good bandwidth to a backbone and cycles to spare where we can run anon cvs access to Linus's kernel.git repo. cheers, martin -
May 10, 1:34 am 2006
Randal L. Schwartz
Re: What's in git.git
>>>>> "Junio" == Junio C Hamano <junkio@cox.net> writes: Junio> This week's "What's in" is a day early, since I do not expect to Junio> be able to do much gitting for the rest of the week. I just got this with the latest, on the git archive, using git-repack -a: Generating pack... Done counting 19151 objects. Deltifying 19151 objects. Segmentation fault (core dumped) This is on OpenBSD. Is there a secret sabotage afoot? This is repeatable. Is there anything I ca...
May 10, 12:36 am 2006
Junio C Hamano
Re: What's in git.git
Tonight's latest (f7a3276) merged Nico's delta patches that was in "next" branch for some time, so that is what I would suspect first. commit 06a9f9203570d21f9ef5fe219cdde527dcdf0990 Author: Nicolas Pitre <nico@cam.org> improve diff-delta with sparse and/or repetitive data commit 2d08e5dd730680f7f8645a6326ec653435e032df Author: Nicolas Pitre <nico@cam.org> tiny optimization to diff-delta commit 3dc5a9e4cdcc7124c665a050547d1285d86a421f ...
May 10, 1:05 am 2006
Linus Torvalds
Re: What's in git.git
Can you see what the traceback is with gdb? I'd suspect the deltifier changes, the rabin hash in particular. The core file traceback would probably point right at the culprit if so. I don't see the problem myself, but if it's an access just past the end of an array or something, it would depend on exactly what the delta pattern is (which, without the "-f" flag, in turn depends on what your previous packs looked like) and also on the allocation strategy (which migth explain why it shows...
May 10, 12:45 am 2006
Nicolas Pitre
Re: What's in git.git
When linking with Electric Fence I can reproduce the segfault on Linux as well. Looking into it now. Nicolas -
May 10, 10:15 am 2006
Linus Torvalds
Re: What's in git.git
Yeah, I get #0 0x1000bfe4 in create_delta (index=0xf7d758a0, trg_buf=0xf7d72eb8, trg_size=327, delta_size=0xffb422b4, max_size=143) at diff-delta.c:308 #1 0x10005734 in try_delta (trg=0xf7fdbfa0, src=0xf7fdbf94, src_index=0xf7d758a0, max_depth=10) at pack-objects.c:1049 #2 0x10005b04 in find_deltas (list=0xf7e32f54, window=11, depth=10) at pack-objects.c:1128 #3 0x10005ca0 in prepare_pack (window=10, depth=10) at pack-objects.c:1161 #4 0x1000677c in main (argc=3, argv=0x...
May 10, 12:48 pm 2006
Alex Riesen
Re: What's in git.git
T24gNS8xMC8wNiwgTmljb2xhcyBQaXRyZSA8bmljb0BjYW0ub3JnPiB3cm90ZToKPiA+ID4KPiA+ ID4gSnVuaW8+IFRoaXMgd2VlaydzICJXaGF0J3MgaW4iIGlzIGEgZGF5IGVhcmx5LCBzaW5jZSBJ IGRvIG5vdCBleHBlY3QgdG8KPiA+ID4gSnVuaW8+IGJlIGFibGUgdG8gZG8gbXVjaCBnaXR0aW5n IGZvciB0aGUgcmVzdCBvZiB0aGUgd2Vlay4KPiA+ID4KPiA+ID4gSSBqdXN0IGdvdCB0aGlzIHdp dGggdGhlIGxhdGVzdCwgb24gdGhlIGdpdCBhcmNoaXZlLCB1c2luZyBnaXQtcmVwYWNrIC1hOgo+ ID4gPgo+ID4gPiBHZW5lcmF0aW5nIHBhY2suLi4KPiA+ID4gRG9uZSBjb3VudGluZyAxOTE1MSBv YmplY3RzLgo+ID4gPiBEZWx0aWZ5aW5nIDE5MTUxIG9i...
May 10, 11:00 am 2006
Linus Torvalds
Re: What's in git.git
Btw, am I just smoking stuff, or is this going to be fundamentally problematic for "git-apply -R" if we ever want to support that? I think the new binary diff is non-reversible. That's ok right now, since we don't actually support patching in reverse (if you want to get the reverse patch, you need to _diff_ it in reverse and then patch it that way). But at least in theory we might well want to do "-R" eventually. Hmm? Or did I just mis-understand the format? Linus -
May 10, 12:21 am 2006
Junio C Hamano
Re: What's in git.git
It is problematic but not more than the current index + "Binary files differ" output. If you have both pre and postimage then you do not need the binary data. The forward application is done assuming you have the preimage (but not necessarily postimage), and when you do not have postimage the binary data is used. When going reverse we should assume you have the postimage (but not necessarily preimage), but the pack-object format xdelta is not reversible so if you do not have preimage that matc...
May 10, 12:41 am 2006
Linus Torvalds
Re: What's in git.git
Yeah, that could get exciting ;) Linus -
May 10, 12:51 am 2006
Linus Torvalds
Re: What's in git.git
Btw, I don't actually know why we don't support "-R". The way git-apply is written, it should be totally trivial (just switch old/new around for data and line numbers - since it doesn't actually apply the patch directly line by line or anything like that) for a normal patch. So if I read the binary patch right, the lack of "-R" went from "silly oversight" to "uhhuh, I don't think the patch format supports it". Maybe it's not a big deal. Linus -
May 10, 12:26 am 2006
Martin Langhoff
Re: Implementing branch attributes in git config
Good one. I'm following this thread with interest, but it feels we've been attacked by the 'bike shed bug' in the act of redesigning Windows.ini. As an end-user, I have personally stayed away from the increasingly complex scheme for remotes waiting for it to settle, and stuck with the old-styled .git/branches stuff which is slam-dunk simple and it just works. The normal non-branch config options don't need any of this fancy stuff. And I think the branches is reasonably well managed as files as...
May 10, 3:19 am 2006
Linus Torvalds
Re: Implementing branch attributes in git config
Sure. It clearly _is_ a bike shed, which is why I posted patches: I think the way to resolve bike sheds is to "just do it". In the kernel, the general rule ends up being "he who writes the code gets to choose how it gets done", because it turns out that there are a lot more people willing to _argue_ about code than there are people willing to _write_ it, and thus that "real code wins" rule actually works very well in practice. I don't think I've ever really seen an argument where you ende...
May 10, 11:37 am 2006
Martin Langhoff
Re: Implementing branch attributes in git config
Apologies -- I didn't want to know it, but I do wonder what the gain behind the change is. It seems to me that it would be a bad idea to store refs in the config file and, in my mind at least, branch info is But it is a bit of a loss for perl/shell porcelains, and for users that abuse the contents of .git directly on a regular basis... there's nothing to stop us from having a structured representation of Agreed, it's a mess, but I suspect it's still there to support cogito. In keeping with ...
May 10, 7:17 pm 2006
Linus Torvalds
Re: Implementing branch attributes in git config
I think we can do better in a few pretty important regards: - having the information in one place. I agree that the multi-file approach works fine for shell scripts (although I disagree that the new one would be harder - you just use git-repo-config instead), but I think it's quite confusing from a new user perspective. I bet that even without any tools, new users can be told to just open ".git/config", and guess how hard a time they would have to add a new branch, i...
May 10, 7:55 pm 2006
Nicolas Pitre
Re: Implementing branch attributes in git config
I totally agree with the principle, but I find the above really confusing. Which "branch" means what? At least if it was "remote_url" and "remote_branch" then there wouldn't be any possibility for confusion. Nicolas -
May 10, 9:53 pm 2006
Martin Langhoff
Re: Implementing branch attributes in git config
As you say, this needs to be explained/exposed better to the user. Now, how about having one .git/config and one .git/branches file? Agreed, but I suspect repo config and branches config travel at different speeds. Maybe what this means is that if this happens, we'll start seeing a need for ~/.git/config and /etc/git/config to set defaults (merge.summary=1 for all my repos, core.sharedrepository=1 for all the repos on this server) where I now I just mostly copy .git/config around. Must be ...
May 10, 8:13 pm 2006
Linus Torvalds
Re: Implementing branch attributes in git config
Btw, I seriously believe that git has come to the point where we've licked the real technical issues. Stability hasn't been a concern for the last year - and even something as seriously as a repacking bug causing a SIGSEGV (yesterday) was actually basically designed to not be able to cause problems. The repack failed, and nothing happened to the old data. It was scary, but it wasn't "bad". The last performance problem was a stupid one-liner, where one of the shell scripts didn't use the...
May 10, 8:11 pm 2006
Johannes Schindelin
Re: Implementing branch attributes in git config
Hi, Depends on how you look at it. A bunch of files is okay for quick-n-dirty, where you do not care about locking or consistency or extensibility. Ciao, Dscho -
May 10, 7:07 am 2006
Martin Mares
Re: git-feed-mail-list.sh
Wouldn't it be easier to feed the output to a MUA and letting it handle the MIME stuff for you? I am using mutt for this purpose: mutt -x -e 'set charset="utf-8"; set send_charset="us-ascii:iso-8859-2:utf-8"' -s "$subj" "$recipient" <$out Have a nice fortnight -- Martin `MJ' Mares <mj@ucw.cz> http://atrey.karlin.mff.cuni.cz/~mj/ Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth Next lecture on time travel will be held on previous Monday. -
May 10, 4:49 am 2006
previous daytodaynext day
May 9, 2006May 10, 2006May 11, 2006