git mailing list

FromSubjectsort iconDate
Jakub Narebski
Re: Init on push
Shouldn't it be "-C $there" (like make and tar)? -- Jakub Narebski Warsaw, Poland ShadeHawk on #git --
Nov 8, 4:06 pm 2008
Francis Galiegue
Re: Init on push
I agree with that. It's pretty much a standard for quite a few "command line people", insofar as I always look for such an option in case I want to know whether a command has the ability to chdir() to a different directory than the current one :p -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 6 83 87 78 75 Tel : +33 (0) 1 78 94 55 52 fge@one2team.com 40 avenue Raymond Poincaré 75116 Paris --
Nov 8, 4:08 pm 2008
Junio C Hamano
Re: Init on push
In this particular case, it is not "chdir() before starting" but "mkdir and then chdir() into it". Using -C would be counterproductive. --
Nov 8, 4:38 pm 2008
Francis Galiegue
Re: Init on push
I have missed the mkdir part, but then here this is mkdir _-p_... I mean, what is the cost of mkdir -p the/dir and then git init -C the/dir? I don't think it's that good an idea to have git create the directory in this case... Think of what would happen if you git -D a/b, and a is a symlink to, where, somewhere (doesn't exist, exists but if you touch it you're {in trouble,good for jail time, whatever}). I personnaly think that the directory creation SHOULD be created to the commands tha...
Nov 8, 4:44 pm 2008
Francis Galiegue
Re: Init on push
Le Saturday 08 November 2008 21:44:25 Francis Galiegue, vous avez écrit : I meant "handled", sorry. -- fge --
Nov 8, 4:50 pm 2008
Jakub Narebski
[RFC] Configuring (future) committags support in gitweb
Francis Galiegue <fg@one2team.net> writes Here below there is proposal how the committags support could look like for gitweb _user_, which means how to configure gitweb to use (or do not use) committags, how to configure committags, and how to define new committags. Committags are "tags" in commit messages, expanded when rendering commit message, like gitweb now does for (shortened) SHA-1, converting them to 'object' view link. It should be done in a way to make it easy configurable, pr...
Nov 8, 3:07 pm 2008
Francis Galiegue
Re: [RFC] Configuring (future) committags support in gitweb
Your proposal goes much further than my initial question, but I thought I'd I don't understand what the "signoff" builtin is : is that a link to see only commits "Signed-off-by:" a particular person? If so, might I suggest that an "alt" tells "Only show commits signed off by this person"? And also, what about the sha1 builtin? AFAIK, a SHA1 can point to a commit, a tree, and others... In fact, it points to any of these right now, but how would you tell apart these different SHA1s in a ...
Nov 8, 4:02 pm 2008
Jakub Narebski
Re: [RFC] Configuring (future) committags support in gitweb
Like in example with 'link' rule, not having to write whole <a href="http://example.com/bugzilla.php?id=$1">$&</a> Committags doesn't need to be replaced by links. In this case I meant here using 'signoff' class for Signed-off-by: (and the like) lines, by SHA1 (or shortened SHA1 from 8 charasters to 40 characters, or to be even more exact something that looks like SHA1) is replaced by link to 'object' view, which in turn finds type of object and _redirect_ to proper view, be it ...
Nov 8, 6:35 pm 2008
Francis Galiegue
Re: [RFC] Configuring (future) committags support in gitweb
OK, you lost me somewhat. What I understand is that right now, the SHA1 links are "pre-processed" by gitweb so that the 'a' parameter is correct, right? Out of curiosity, I just went to the kernel git repository (I don't know the git version that git.kernel.org uses offhand) and altered the 'a' parameter to something which is not even an 'a' command at all: 500... However, if I try a VALID 'a' command with an "irrelevant" 'h' parameter, it acts quite funny: it just looks like it wants...
Nov 8, 7:27 pm 2008
Robin Rosenberg
Init on push
Hi, I am missing the ability to do this (command line or GUI) git remote add someremote someurl git push --init someremote/someurl The implementation would invoke receive pack on the receiving side with an --init option. On the server side the repository would be created and initialized just as one had executed and mkdir and git init --bare. The target audience is people who are either lazy (like me) or "shellofobic" users. GUI's would get an extra check box. This could be extended by pas...
Nov 8, 12:08 pm 2008
Junio C Hamano
Re: Init on push
We saw this quite a number of times. I think it's about time we did something about it. But I do not think it is a reasonable design to give receive-pack such an option. An easy alternative would be to issue the usual "mkdir && git init" shell script before spawning receive-pack. This will limit the feature to pushing over the ssh transport, and pushing over the git protocol against a loose git-daemon will not be able to support it. Also I suspect this will break sites managed by gi...
Nov 8, 3:26 pm 2008
Alexander Gavrilov
Re: Init on push
Gitosis works by replacing the shell with a program called gitosis-serve, which parses and validates the incoming commands against the user access configuration. If it sees an unknown command, it will simply refuse to execute it. On the other hand it will automatically perform initialization before calling receive-pack if the user is authorized to write to a certain path, but the repository does not exist yet. Alexander --
Nov 8, 4:01 pm 2008
Junio C Hamano
Re: Init on push
If you implement a new feature by enhancing receive-pack (or anything else), you obviously cannot use the new feature against an installation with an older implementation, so what you said is a known. My point was how to enhance the receiving end and what constraints we would have in That's good to know. I also realize that gitosis does not need any hook for "git init -D $there" to decide whether a new repository can be created at requested location, as it reads the command line and makes decisi...
Nov 8, 4:12 pm 2008
Christian Couder
[PATCH 7/7 v3 updated] bisect: use "--bisect-replace" option...
Signed-off-by: Christian Couder <chriscool@tuxfamily.org> --- git-bisect.sh | 4 ++-- t/t6035-bisect-replace.sh | 10 ++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) This is the same as [PATCH 7/7 v3] but with a test case added. diff --git a/git-bisect.sh b/git-bisect.sh index 1daa81c..87e186f 100755 --- a/git-bisect.sh +++ b/git-bisect.sh @@ -401,7 +401,7 @@ check_merge_bases() { _bad="$1" _good="$2" _skip="$3" - for _mb in $(git merge-base --...
Nov 8, 11:33 am 2008
Björn
Re: [question] git svn fail to fetch GCC source due to index...
ad0a82bae: git-svn: Always create a new RA when calling do_switch for svn:// According to the commit message, that fixed a problem that caused the "Malformed netword data" error. It's in git v1.6.0.3, so if you have an older git version, try upgrading. HTH Björn --
Nov 8, 4:34 pm 2008
Alexandre Julliard
[PATCH] checkout: Don't crash when switching away from an in...
When using alternates, it is possible for HEAD to end up pointing to an invalid commit. git checkout should be able to recover from that situation without crashing. Signed-off-by: Alexandre Julliard <julliard@winehq.org> --- builtin-checkout.c | 8 ++++---- t/t2011-checkout-invalid-head.sh | 18 ++++++++++++++++++ 2 files changed, 22 insertions(+), 4 deletions(-) create mode 100755 t/t2011-checkout-invalid-head.sh diff --git a/builtin-checkout.c b/builtin-checkout.c ...
Nov 8, 8:03 am 2008
Nguyễn Thái Ngọ...
[PATCH v2 1/2] diffcore-rename: support rename cache
This patch teaches diffcore_rename() to look into $GIT_DIR/rename-cache and make use of it to recreate diff_filepair. With proper cache, there should be no available entry for estimation after exact matching. Rename caching is per commit. I don't think abitrary tree-tree caching is worth it. $GIT_DIR/rename-cache spans out like $GIT_DIR/objects. Each file corresponds to one commit. Its content consists of lines like this <Destination SHA-1> <SPC> <Source SHA-1> <SPC> &l...
Nov 8, 7:27 am 2008
Nguyễn Thái Ngọ...
[PATCH v2 2/2] diffcore-rename: add config option to allow t...
If diff.cacherenames is true, then renames will be cached to $GIT_DIR/rename-cache. By default, it will not overwrite existing cache. Add --refresh-cache to overwrite. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> --- Documentation/config.txt | 5 ++++ Documentation/diff-options.txt | 5 ++++ diff.c | 12 +++++++++ diff.h | 2 + diffcore-rename.c | 49 ++++++++++++++++++++++++++++++++++++++++ t/...
Nov 8, 7:27 am 2008
Christian Couder
[PATCH 7/7 v3] bisect: use "--bisect-replace" options when c...
Signed-off-by: Christian Couder <chriscool@tuxfamily.org> --- git-bisect.sh | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/git-bisect.sh b/git-bisect.sh index 1daa81c..87e186f 100755 --- a/git-bisect.sh +++ b/git-bisect.sh @@ -401,7 +401,7 @@ check_merge_bases() { _bad="$1" _good="$2" _skip="$3" - for _mb in $(git merge-base --all $_bad $_good) + for _mb in $(git merge-base --all --bisect-replace $_bad $_good) do if is_among "$_mb" "$_good"; the...
Nov 8, 3:52 am 2008
Christian Couder
[PATCH 6/7 v3] merge-base: add "--bisect-replace" option to ...
Signed-off-by: Christian Couder <chriscool@tuxfamily.org> --- Documentation/git-merge-base.txt | 6 +++++- builtin-merge-base.c | 8 +++++++- t/t6035-bisect-replace.sh | 7 +++++++ 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/Documentation/git-merge-base.txt b/Documentation/git-merge-base.txt index 2f0c525..af174f7 100644 --- a/Documentation/git-merge-base.txt +++ b/Documentation/git-merge-base.txt @@ -8,7 +8,7 @@ git-merge-base - Find as good...
Nov 8, 3:51 am 2008
Christian Couder
[PATCH 5/7 v3] commit: add "bisect_replace_all" prototype to...
Signed-off-by: Christian Couder <chriscool@tuxfamily.org> --- builtin-rev-list.c | 2 +- commit.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletions(-) diff --git a/builtin-rev-list.c b/builtin-rev-list.c index 75cc1fc..7cf5f9e 100644 --- a/builtin-rev-list.c +++ b/builtin-rev-list.c @@ -637,7 +637,7 @@ static int bisect_replace(const char *refname, const unsigned char *sha1, return 0; } -static void bisect_replace_all(void) +void bisect_replace_all(void) { ...
Nov 8, 3:50 am 2008
Christian Couder
[PATCH 4/7 v3] rev-list: add "--bisect-replace" to list revi...
This should help both human and scripts deal better with "bisect-replace-*" branches. Signed-off-by: Christian Couder <chriscool@tuxfamily.org> --- Documentation/git-rev-list.txt | 1 + Documentation/rev-list-options.txt | 15 +++++++++++++++ builtin-rev-list.c | 12 +++++++++--- t/t6035-bisect-replace.sh | 12 ++++++++++++ 4 files changed, 37 insertions(+), 3 deletions(-) diff --git a/Documentation/git-rev-list.txt b/Documentation/git-rev-list.txt ...
Nov 8, 3:49 am 2008
Christian Couder
[PATCH 3/7 v3] Documentation: add "git bisect replace" docum...
Signed-off-by: Christian Couder <chriscool@tuxfamily.org> --- Documentation/git-bisect.txt | 61 ++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 61 insertions(+), 0 deletions(-) diff --git a/Documentation/git-bisect.txt b/Documentation/git-bisect.txt index c7981ef..5d5bdf7 100644 --- a/Documentation/git-bisect.txt +++ b/Documentation/git-bisect.txt @@ -24,6 +24,7 @@ on the subcommand: git bisect visualize git bisect replay <logfile> git bisect log + git bisect ...
Nov 8, 3:49 am 2008
Christian Couder
[PATCH 1/7 v3] bisect: add "git bisect replace" subcommand
This subcommand should be used when you have a branch or a part of a branch that isn't easily bisectable because of a bug that has been fixed latter. We suppose that a bug as been introduced at some point, say A, and that it has been fixed latter at another point, say B, but that between these points the code is not easily testable because of the bug, so it's not easy to bisect between these points. In this case you can create a branch starting at the parent of A, say O, that has a fixed history...
Nov 8, 3:48 am 2008
Christian Couder
[PATCH 2/7 v3] bisect: add test cases for "git bisect replace"
Signed-off-by: Christian Couder <chriscool@tuxfamily.org> --- t/t6035-bisect-replace.sh | 130 +++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 130 insertions(+), 0 deletions(-) create mode 100755 t/t6035-bisect-replace.sh diff --git a/t/t6035-bisect-replace.sh b/t/t6035-bisect-replace.sh new file mode 100755 index 0000000..6ab3667 --- /dev/null +++ b/t/t6035-bisect-replace.sh @@ -0,0 +1,130 @@ +#!/bin/sh +# +# Copyright (c) 2008 Christian Couder +# +test_description=...
Nov 8, 3:48 am 2008
John Chapman
[PATCH 1/2] Added support for purged files and also optimise...
Purged files are handled as if they are merely deleted, which is not entirely optimal, but I don't know of any other way to handle them. File data is deleted from memory as early as they can, and they are more efficiently handled, at (significant) cost to CPU usage. Still need to handle p4 branches with spaces in their names. Still need to make git-p4 clone more reliable. - Perhaps with a --continue option. (Sometimes the p4 server kills the connection) Signed-off-by: John Chapman <thestar@...
Nov 7, 11:22 pm 2008
John Chapman
[PATCH 2/2] Cached the git configuration, which is now notic...
Signed-off-by: John Chapman <thestar@fussycoder.id.au> --- contrib/fast-import/git-p4 | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/contrib/fast-import/git-p4 b/contrib/fast-import/git-p4 index 38d1a17..9f0a5f9 100755 --- a/contrib/fast-import/git-p4 +++ b/contrib/fast-import/git-p4 @@ -316,8 +316,11 @@ def gitBranchExists(branch): stderr=subprocess.PIPE, stdout=subprocess.PIPE); return proc.wait() == 0; +_gitConfig = {...
Nov 7, 11:22 pm 2008
David Symonds
Re: [PATCH 2/2] Cached the git configuration, which is now n...
If this is truly a noticeable bottleneck on Windows, something like the following might be even better: (completely untested!) _gitConfig = None def gitConfig(key): if _gitConfig is None: lines = read_pipe("git config -l", ignore_error=True).readlines(): _gitConfig = dict([l.strip().split('=', 1) for l in lines]) return _gitConfig.get(key, None) Dave. --
Nov 8, 1:19 am 2008
Jakub Narebski
Re: [PATCH 2/2] Cached the git configuration, which is now n...
Wouldn't it be better to use "git config -l -z", split lines at "\0" (NUL), and split key from value at first "\N" (CR)? This format was meant for scripts. -- Jakub Narebski Poland ShadeHawk on #git --
Nov 8, 6:13 am 2008
Arafangion
Re: [PATCH 2/2] Cached the git configuration, which is now n...
On Fri, 2008-11-07 at 21:19 -0800, David Symonds wrote: That certainly is better, if one can assume that git's configuration is small. (And relative to the memory usage of the script, it will definetly be small). I shall give that a go, although the change won't make it even faster - I suspect that much of the performance penalty in windows is the pathetic fork() performance, particularly as the memory usage of the script increases. (If subprocess does fork() and exec() in order to open another ...
Nov 8, 2:52 am 2008
Jakub Narebski
How it was at GitTogether'08 ?
GitTogether 2008, which took place October 27(Mon)-29(Wed), has ended more than week ago. Therefore I'd like to ask you impressions (while it is still fresh) from GitTogether, describe talks which are not described below, correct wrong information in below, etc. Please reply to this email while GitTogether is on front of your mind... Talks at GitTogether 2008 ========================= Mon, Oct 27, 2008 ----------------- * Dscho: Contributing with Git [ message continues ]
" title="http://www.youtube.com/watch?v=j45cs...">http://www.youtube.com/watch?v=j45cs...
Nov 7, 9:54 pm 2008
David Symonds
Re: How it was at GitTogether'08 ?
On Fri, Nov 7, 2008 at 5:54 PM, Jakub Narebski <jnareb@gmail.com> wrote: It was a good intro, but I was expecting a few more non-GitTogether people. We had quite a large room, but there was only about a dozen other people who came along. I don't know whether that was the fault This was really interesting. It would be great to put this on a One thing I didn't get around to bringing up: one of the benefits of diff-time rename detection that is often touted is that algorithms can improve o...
Nov 8, 1:08 am 2008
Jakub Narebski
Re: How it was at GitTogether'08 ?
By the way, it would be nice to have transcript for this talk, just like there is for Linus talk: http://git.or.cz/gitwiki/LinusTalk200705Transcript (but this would take some doing). It would be also nice to have slides for the talk available somewhere, Something like Sam Vilain slides from "perl.git" talk?, http://utsl.gen.nz/talks/perl-history/slides/ It shouldn't be that hard, depending on the original program the slides were made... well, it was made in Impress from OpenOffice.org ...
Nov 8, 11:31 am 2008
Johan Herland
Re: How it was at GitTogether'08 ?
Can someone elaborate on this? AFAIK, notes have popped up on this list often enough that I'm convinced it would be a _really_ useful feature. The only drawback I was aware of, was the lack of an efficient implementation, but then Jeff comes out of the blue and posts some interesting numbers [1] a week or so ago. Does this mean there are no remaining obstacles? [1]: http://article.gmane.org/gmane.comp.version-control.git/99415 Have fun! ...Johan -- Johan Herland, <johan@herlan...
Nov 7, 11:41 pm 2008
Jeff King
Re: How it was at GitTogether'08 ?
The discussion was along the lines of "here are some more cool things we could do, if we had notes." I don't remember the specifics of the cool things, but they were related to annotating patches with review information. Shawn can probably elaborate more. That led to a "notes as a tree are nice, but too slow because looking up a tree entry is linear" (and obviously you do a ton of lookups in the notes tree during "git log"). Dscho had posted an implementation with a persistent notes cache long ag...
Nov 8, 10:17 am 2008
Yann Dirson
Re: [PATCH 2/3] Introduce rename factorization in diffcore.
Sure in theory. But in practice I do not remember one time when, if all files from one dir are moved in one branch, the files added on another in the same dir were not bound to be moved as well. Anway, if we feel git-apply should not decide without the user knowing, we can make it refuse by default, with options to do either OK, so I realize we need 2 things here: one format for diff-exporting with complete info, and one for human viewing (which is, again, the primary reason why I needed thi...
Nov 7, 8:29 pm 2008
Junio C Hamano
Re: [PATCH 2/3] Introduce rename factorization in diffcore.
If it is a warning to the user who produces the patch, and not but a Renaming patch needs manual massaging if you want to use GNU patch and that is not a new issue. People know that. The problem is in your example output were that it would break _existing git tools_ with a backward incompatible change, when you did not have to. That's the difference. --
Nov 7, 8:47 pm 2008
Yann Dirson Nov 7, 8:50 pm 2008
Jeff King
Re: [RFC PATCH 0/4] deny push to current branch of non-bare ...
Yeah, I was kind of hoping we could assume that anybody relying on this behavior was somewhat insane, and wouldn't be too upset when it broke. But you're probably right that we should be more conservative. I'll rework it with a "yes/no/warn" option for the config, and we can set it to "warn" (and those who really do want it can shut off the warning with "no"). Or we can even start with just leaving it on "no", but I think Yes, they do break with 4/4 applied without 3/4 (that was how I found them,...
Nov 8, 10:27 am 2008
Junio C Hamano
Re: [RFC PATCH 0/4] deny push to current branch of non-bare ...
I meant to suggest that change contained in 3/4 can instead be "set the configuration to allow such a dangerous push upfront, and make sure the pushes the current tests perform actually are still allowed", _if_ you are changing the default to forbid. I think the default should be to warn for two release cycles during which we will give deprecation notice, and then switch the default to forbid (and we do not touch "git init/git clone" at all --- changing the default to forbid in newly created repo...
Nov 8, 4:49 pm 2008
Johannes Schindelin
Re: [RFC PATCH 0/4] deny push to current branch of non-bare ...
Hi, I think I have a repository with "git read-tree -u -m HEAD" as update hook for that kind of behavior. But I will not be the person responsible to keep that behavior, if I am the only one relying on it. I very much like the approach of defaulting to "warn" for quite some time (but setting the variable to "refuse" in git-init) and then adapt the default after some time. Ciao, Dscho --
Nov 8, 11:12 am 2008
Johannes Schindelin
Re: pull --preserve-merges
Hi, That might be something you want, but you cannot call it git pull --preserve-merges since everybody used to "pull = fetch && merge" would go "Huh? A merge _does_ preserve merges". If at all, you could call it "--rebase=preserve-merges". Ciao, Dscho --
Nov 8, 11:08 am 2008
Francis Galiegue
Re: pull --preserve-merges
Why not --rebase --keep-merges? Personnally, I think it makes things clearer since in general options are either standalone or have a value. -- fge --
Nov 8, 1:07 pm 2008
Stephen Haberman
Re: pull --preserve-merges
Ah, right, sorry, Johannes, I know it only makes sense in the context if I originally had --rebase --preserve-merges in mind because it matches the existing -p/--preserve-merges flag that git rebase has that I'd like git pull to just pass along. If they were separate flags, passing just --preserve-merges without --rebase should likely report an error. Probably the same thing if someone sets `branch.name.preservemerges` but `branch.name.rebase` is not set. Unless instead of separate confi...
Nov 8, 1:57 pm 2008
Pierre Habouzit
Re: absurdly slow git-diff
FWIW Patience diff wouldn't help at all here. Patience diff is just a matter of preseeding your preferred diff algorithm with better (wrt human readability) candidate for the invariant lines. IOW it helps dividing the problem into smaller bits, but requires *unique lines* to start with. If you haven't any, then basically, Patience diff does nothing and calls your usual diff algorithm on the whole files. It does so in a pseudo linear complexity, hence should not make overall time really worse, but...
Nov 7, 8:14 pm 2008
Junio C Hamano
Re: absurdly slow git-diff
Thanks, will apply like this, but I am not sure if you meant windowN or just window... -- >8 -- From: Davide Libenzi <davidel@xmailserver.org> Date: Fri, 7 Nov 2008 21:24:33 -0800 Subject: [PATCH] xdiff: give up scanning similar lines early In a corner case of large files whose lines do not match uniquely, the loop to eliminate a line that matches multiple locations adjacent to a run of lines that do not uniquely match wasted too much cycles. Fix this by giving up early after scanni...
Nov 8, 1:30 am 2008
Davide Libenzi
Re: absurdly slow git-diff
Whoops, just WINDOW. - Davide --
Nov 8, 12:27 pm 2008
Junio C Hamano
Re: absurdly slow git-diff
In git.git history, "git-whatchanged -m -p -1" gives different output for the following commits, with and without the patch: c0e9892637e8144f10f2c408e276a470520f3601 d6b3e3a33f71910526ccf80af6c13a230363cd89 cecb98a9c3ed9271b0974bb6d7edbcf16e8a68f3 ce18135d862b5dbc731d203b27c279529e58b54b 36b5b3c65948694d9a92de5a17f2b97c3cd84879 767e130915015f897fb87b939843b4882212574b 927a503cd07718ea0f700052043f383253904a56 I've sampled a few (but not a...
Nov 8, 5:02 pm 2008
Abhijit Menon-Sen
Re: absurdly slow git-diff
It works fine for me (the time went from 5m17s to 1.8s). (By the way, my test case is certainly very odd, but it is a real file from my test suite, albeit with the content x'ed away; and the change was to adjust the expected output for all the items. I wasn't looking for bugs. :-) Thanks for the explanation and the patch. -- ams --
Nov 8, 12:57 am 2008
Alexandre Julliard
Re: [PATCH] checkout: Don't crash when switching away from a...
It turns out to be user error, that was a tree I hadn't used in a long time and I didn't realize it was using alternates, so HEAD was pointing to a commit that had been rebased and garbage-collected in the source repository. Most other commands die with a "bad object HEAD" in that situation, and checkout could certainly do that too, but I think it's nicer to provide an easy way of getting out of that broken state. I'll resend an updated patch. -- Alexandre Julliard julliard@winehq.org -- ...
Nov 8, 6:07 am 2008
previous daytodaynext day
November 7, 2008November 8, 2008November 9, 2008