git mailing list

FromSubjectsort iconDate
Michele Ballabio
[PATCH] Fix typo in a comment in t/test-lib.sh
Signed-off-by: Michele Ballabio <barra_cuda@katamail.com> --- t/test-lib.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/t/test-lib.sh b/t/test-lib.sh index 90b6844..142540e 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -257,7 +257,7 @@ test_expect_code () { echo >&3 "" } -# Most tests can use the created repository, but some amy need to create more. +# Most tests can use the created repository, but some may need to create more. # Usage: te...
Jan 31, 5:59 pm 2008
Daniel Baumann
Wishlist: Please add --author to git-tag
Hi, git commit supports --author to overwrite the author information on a particular commit; it would be nice if git tag would offer the same. Regards, Daniel -- Address: Daniel Baumann, Burgunderstrasse 3, CH-4562 Biberist Email: daniel.baumann@panthera-systems.net Internet: http://people.panthera-systems.net/~daniel-baumann/ -
Jan 31, 1:27 pm 2008
Pierre Habouzit
Re: Wishlist: Please add --author to git-tag
Meanwhile, GIT_AUTHOR_NAME=3D"John Doe" GIT_AUTHOR_EMAIL=3Dluser@example.com git tag Will work --=20 =C2=B7O=C2=B7 Pierre Habouzit =C2=B7=C2=B7O madcoder@debia= n.org OOO http://www.madism.org
Jan 31, 3:35 pm 2008
Carlos Rica
Re: Wishlist: Please add --author to git-tag
That didn't work for me, but perhaps I'm not understanding what this user wants to do. I think it is about to create a tag object having another author different from committer. In such case, and looking at builtin-commit.c, I see that the code needed could came from the function determine_author_info(), just the part using force_author variable, to be added in the create_tag() function from builtin-tag.c. The only thing I don't know is if this should be different from git-commit in which bot...
Jan 31, 6:49 pm 2008
Johannes Schindelin
Re: Wishlist: Please add --author to git-tag
Hi, Hey jasam, good to see you again. I think that you have to use "-s" or "-a" for the author information to take effect (IOW a lightweight tag will not pick it up, since it is only a 41-byte file, and does not change the object database). Ciao, Dscho -
Jan 31, 7:48 pm 2008
Thomas Arcila
[PATCH] gitk : External diff viewer.
Right click on patched file list view gives "External diff" popup menu entry, launching selected external diff tool. The diff tool is configurable through Edit/Preference/External diff tool. Signed-off-by: Thomas Arcila <tarcila@mc.com> --- Hi, Here is a patch to gitk that allows to run an external diff viewer. It can be configured in Edit/Preferences/External diff tool. To see the diff between two files: - select revisions to diff - right click on a file in the patched files list vi...
Jan 31, 12:00 pm 2008
Steffen Prohaska
Re: [PATCH] gitk : External diff viewer.
Various combinations of showing diffs between index, work tree, and commits work for me. I haven't yet found any problems. Steffen -
Jan 31, 1:50 pm 2008
Johannes Sixt
git-push: forced update of tag shows unabbreviated SHA1
This is just a cosmetical flaw: When a tag is changed to point to a new commit, then the tag is pushed to a repo that still has the old tag, it is correctly pushed, but the old SHA1 is reported with all 40 digits: # make upstream repo $ mkdir A && cd A $ git init $ echo a > a; git add a; git commit -m a # clone, modify, push $ cd .. $ git clone A B $ cd B $ echo b > a; git commit -a -m b $ git push file://$PWD/../A # tag old state in upstream $ cd ../A $ git tag -m T T ...
Jan 31, 5:27 am 2008
Jeff King
Re: git-push: forced update of tag shows unabbreviated SHA1
As Junio noted, this is because find_unique_abbrev returns NULL for objects we don't have. Actually, it is somewhat worse -- we return an erroneous abbreviation in the rare case that we are trying to find the abbreviation for something we don't have, but for which we do have a matching abbreviation. For example, if we have 1234567890123456789012345678901234567890 then for every 12345678* that we don't have, we will claim the correct abbreviation is 1234568. In practice, I doubt this is a p...
Jan 31, 6:06 am 2008
Jeff King
Re: git-push: forced update of tag shows unabbreviated SHA1
Actually, it looks like we already handle a similar case: the null sha1, so the change isn't that big (and the null sha1 case folds nicely into the "missing" case). With the (lightly tested) patch below, find_unique_abbrev _always_ returns an answer, and for missing objects will show enough characters that it doesn't match any existing object. diff --git a/sha1_name.c b/sha1_name.c index 13e1164..c0e6af1 100644 --- a/sha1_name.c +++ b/sha1_name.c @@ -192,26 +192,24 @@ static int get_short_sha1(...
Jan 31, 6:27 am 2008
Junio C Hamano
Re: git-push: forced update of tag shows unabbreviated SHA1
Heh, "Make sure to abbreviate something that does not match" --- I forgot about that trick I did looooooooong time ago ;-). I like the idea. Does it not break anything? -
Jan 31, 6:38 am 2008
Jeff King
Re: git-push: forced update of tag shows unabbreviated SHA1
No idea. :) I will hold onto it and submit a cleaned up version post-1.5.4. -Peff -
Jan 31, 6:41 am 2008
Junio C Hamano
Re: git-push: forced update of tag shows unabbreviated SHA1
I think that needs to be done carefully. I recall some callers do expect it to return NULL for nonexistant objects, so the bug you noted above as "rare case" may need to be fixed, which I think is more important than coming up with a potentially too short abbreviation. -
Jan 31, 6:21 am 2008
Jeff King
Re: git-push: forced update of tag shows unabbreviated SHA1
The patch I just posted just figures out ahead of time whether the object exists. We can easily have it default to returning NULL but allow a special flag for the new behavior. Something like: diff --git a/builtin-send-pack.c b/builtin-send-pack.c index 8afb1d0..454ad8f 100644 --- a/builtin-send-pack.c +++ b/builtin-send-pack.c @@ -263,9 +263,8 @@ static void print_ref_status(char flag, const char *summary, struct ref *to, str static const char *status_abbrev(unsigned char sha1[20]) { - c...
Jan 31, 6:39 am 2008
Junio C Hamano
Re: git-push: forced update of tag shows unabbreviated SHA1
I suspect that is because you do not _have_ the original object, so there is no uniquely usable abbreviation to name the object in your repository. This obviously is not tested at all (not even compile tested), but I think it would show you what is going on. --- builtin-send-pack.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/builtin-send-pack.c b/builtin-send-pack.c index 8afb1d0..9c558ee 100644 --- a/builtin-send-pack.c +++ b/builtin-send-pack.c @@ -265,7 +...
Jan 31, 5:37 am 2008
Johannes Sixt
Re: git-push: forced update of tag shows unabbreviated SHA1
No, that would be information hiding. I prefer an unabbreviated name. Nevertheless, if we know the name, we could be able to find a suitable abbreviation. But it's really not *that* important... -- Hannes -
Jan 31, 6:01 am 2008
Pierre Habouzit
[bug] generic issue with git_config handlers
One of my co-workers stumbled upon a misfeature of the git config parser. The following syntax is allowed: [section] foo I saw that this is a feature, though as a consequence, the "value" passed to git_config handlers may be NULL, and a _lot_ of git config handlers don't know this could happen. This becomes an issue when you do something like: [user] name --> every git command segfaults basically [alias] foo --> `git foo` segfaults I wanted to fix ...
Jan 31, 5:16 am 2008
Junio C Hamano
Re: [bug] generic issue with git_config handlers
That's very unfortunate. Whatever is expecting string value should check for NULL. Fix should probably be easy enough for any git-hacker-wannabe to tackle ;-) -
Jan 31, 5:25 am 2008
Pierre Habouzit
Re: [bug] generic issue with git_config handlers
I think so too, though my count is something like 40 functions to investigate (the 40 handlers) and where it recurses into ;) Too much work for the time I have right now. --=20 =C2=B7O=C2=B7 Pierre Habouzit =C2=B7=C2=B7O madcoder@debia= n.org OOO http://www.madism.org
Jan 31, 6:10 am 2008
Brandon Casey
[PATCH 2/2] git-filter-branch.sh: don't use --default when c...
This command requires a revision to be specified on the command line, so remove '--default HEAD' from the arguments to git rev-list. They are unnecessary. Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil> --- git-filter-branch.sh | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/git-filter-branch.sh b/git-filter-branch.sh index 5e3fe70..25f18f8 100755 --- a/git-filter-branch.sh +++ b/git-filter-branch.sh @@ -228,11 +228,10 @@ mkdir ../map || die "Could not ...
Jan 30, 8:15 pm 2008
Johannes Schindelin
Re: [PATCH 2/2] git-filter-branch.sh: don't use --default wh...
Hi, But I thought that you wanted "git filter-branch --msg-filter=rot13" to work on HEAD by default? Ciao, Dscho -
Jan 30, 8:49 pm 2008
Brandon Casey
Re: [PATCH 2/2] git-filter-branch.sh: don't use --default wh...
I do. But isn't that inconsistent with "git filter-branch" does _not_ work on HEAD by default and instead prints out usage information? If I do: git filter-branch -d /tmp/git_temp and it is successful, I think I would also expect this to succeed: git filter-branch So, I think the "operates on HEAD" by default is consistent with what other git tools do, but I think it is not consistent for filter-branch to sometimes operate on HEAD by default and sometimes error with usage information. ...
Jan 30, 9:35 pm 2008
Andreas Ericsson
Re: [PATCH 2/2] git-filter-branch.sh: don't use --default wh...
Well, if there's no filter specified it has nothing to do, so erroring out in the no-arguments-at-all case would be sensible. OTOH, it would be better to error out for the no-filter case explicitly, which would also cause the no-arguments case to error out. -- Andreas Ericsson andreas.ericsson@op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 -
Jan 31, 5:17 am 2008
Junio C Hamano
Re: [PATCH 2/2] git-filter-branch.sh: don't use --default wh...
Actually, not erroring out but just returning doing nothing (if there truly isn't anything to do -- iow, the filtering operation turns out to be identity function) would be more sensible. No filter does not necessarily mean identity, by the way. Think "grafts" ;-). -
Jan 31, 5:27 am 2008
Johannes Schindelin
Re: [PATCH 2/2] git-filter-branch.sh: don't use --default wh...
Hi, Yeah. Having slept over it, I agree that there is a sensible default action, and only one. Ciao, Dscho -
Jan 31, 7:07 am 2008
Brandon Casey
[PATCH] filter-branch docs: remove brackets so not to imply ...
Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil> --- Documentation/git-filter-branch.txt | 2 +- git-filter-branch.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/git-filter-branch.txt b/Documentation/git-filter-branch.txt index e22dfa5..6145322 100644 --- a/Documentation/git-filter-branch.txt +++ b/Documentation/git-filter-branch.txt @@ -13,7 +13,7 @@ SYNOPSIS [--msg-filter <command>] [--commit-filter <command>...
Jan 30, 8:41 pm 2008
Junio C Hamano
Re: [PATCH] filter-branch docs: remove brackets so not to im...
I think this is good for 1.5.4. I am not sure about the "assuming HEAD" one. Personally I am not very fond of the idiot-proofing, but there may be many idiots around here, so... -
Jan 30, 9:22 pm 2008
Brandon Casey
Re: [PATCH] filter-branch docs: remove brackets so not to im...
I see you applied both this patch _and_ "filter-branch: assume HEAD if no revision supplied" The latter patch _does_ make the revision arg optional, so this "filter-branch docs" patch is unnecessary. -brandon -
Jan 31, 12:29 pm 2008
Junio C Hamano
Re: [PATCH] filter-branch docs: remove brackets so not to im...
You are of course right. I changed my mind and forgot to revert that one. Here is what I'll do. [PATCH] Revert "filter-branch docs: remove brackets so not to imply revision arg is optional" This reverts commit c41b439244c51b30c60953192816afc91e552578, as we decided to default to HEAD when revision parameters are missing and they are no longer mandatory. Documentation/git-filter-branch.txt | 2 +- git-filter-branch.sh | 2 +- 2 files changed, 2 insertions(+), 2 delet...
Jan 31, 5:53 pm 2008
Johannes Schindelin
Re: [PATCH] filter-branch docs: remove brackets so not to im...
Hi, Oh yes, oh yes. Count me in! ;-) Ciao, Dscho -
Jan 30, 9:53 pm 2008
Johannes Schindelin
Re: [PATCH] filter-branch: assume HEAD if no revision supplied
Hi, But then you would have to keep the test for $#, but enhance it like this: case "$#,$filter_env,$filter_tree,$filter_index,$filter_parent,\ $filter_msg,$filter_commit,$filter_tag_name,$filter_subdir" in 0,,,,,cat,'git commit-tree "$@"',) usage esac Yes, it's ugly. Another method would be having the test _before_ the while loop. ;-) Ciao, Dscho -
Jan 30, 8:16 pm 2008
Brandon Casey
Re: [PATCH] filter-branch: assume HEAD if no revision supplied
I meant I was trying to rewrite the history with grafts. :) -brandon -
Jan 30, 8:20 pm 2008
Brandon Casey
[PATCH 1/2] filter-branch: only print usage information when...
Testing for whether command line arguments were supplied was being performed during option parsing. This had the side effect of printing usage information when a more appropriate error message would have been printed had the script been allowed to continue. Now this: git filter-branch will print usage information. And these: git filter-branch -d /tmp/work-dir git filter-branch <non-existant-revision> git filter-branch -- git filter-branch -- <non-existant-revision> w...
Jan 30, 8:13 pm 2008
Junio C Hamano
Re: [PATCH 1/2] filter-branch: only print usage information ...
I'd refrain from commenting on if it is consistent or not with "the git interface". But I would say I prefer your original better than this one. Will apply. -
Jan 30, 9:34 pm 2008
Brandon Casey
Re: [PATCH 1/2] filter-branch: only print usage information ...
I'm not sure whether you're saying that _I_ should refrain from making comments about "git interface" consistencies? If that's the case, I hope you see I stated it as an opinion by saying "I think" and I don't presume to have contributed anything but a few minor patches. If I would have thought about it for more than a split second I would have said "...since I think it is more consistent with what other git tools do." or whether you're just saying git is still in flux and there is no "git inter...
Jan 30, 10:05 pm 2008
Junio C Hamano
Re: [PATCH 1/2] filter-branch: only print usage information ...
No, I am just saying "I (Junio) is stupid and lazy, and I do not want to think about it right now, so I will not judge on that point". -
Jan 30, 10:44 pm 2008
Junio C Hamano
Re: [PATCH 1/7] Use 'printf %s $x' notation in t5401
I'll apply as-is, but once you break the code that calls pre-receive hook in such a way that it sends unexpected arguments, you'd thank me for suggesting to print the arguments separately while debugging the problem with the test script. -
Jan 30, 9:16 pm 2008
Shawn O. Pearce
Re: [PATCH 1/7] Use 'printf %s $x' notation in t5401
Well, I don't really think it matters. I doubt we'll break that code that invokes the pre-receive or post-receive hooks. And as those hooks are defined to never take arguments if we did suddenly start passing arguments we want the test to break. When tests break sometimes its not obvious why they have broken. Case in point, the "remote: " prefixing caused by the sideband demultiplexer really confused me for about 15 minutes. I could not figure out why the last test in this script was failing....
Jan 30, 11:41 pm 2008
Bruno Cesar Ribas
Re: [PATCH] gitweb: Use config file or file for repository o...
Opening the extra file has same problem as the description file. And, as gitweb allow us to create "description" and "cloneurl" file there is no problem having another file to open instead finding out who is the owner of wow, just me adds more little information?! 8-P (I have my own git.acl which is the "simple" way to my SSH scripts control acl via public_key, but that's another story). Having a single file is already done, having the config file but parser may be bad too (or not for common ca...
Jan 30, 10:36 pm 2008
Junio C Hamano
Re: [PATCH] gitweb: Use config file or file for repository o...
We heard the same argument when cloneurl was added, and a newcomer who does not know that may rightly use the same argument. But I think we should work towards _reducing_ the number of such ad-hoc one-line-per-information files, not using existing ones as an excuse to add _more_ of them. -
Jan 30, 10:48 pm 2008
Junio C Hamano
Re: [PATCH] gitweb: Use config file or file for repository o...
Rephrasing to be constructive (but remember, this is all post 1.5.4). * we would need for historical reasons to keep supporting description and cloneurl for some time. There may be some others, but the goal should be to deprecate and remove these ad-hoc one-file-per-piece-of-information files. * we also need for historical reasons to keep supporting some other stuff found in $git_dir/config of the project. If the config reading interface in gitweb is reasonably fast and cheap...
Jan 30, 11:06 pm 2008
Jakub Narebski
Re: [PATCH] gitweb: Use config file or file for repository o...
Currently gitweb parses repo config file _once_, using one call to git-config -z -l. We could simply add description to the projects_list file, but it will be a bit backwards incompatibile change. We have to call at least one git-for-each-ref per repo to get last While IIRC cvsimport or cvsserver has its own config parser in Perl, but which accepts only limited sensible subset of configuration syntax (and IIRC uses separate config file). -- Jakub Narebski Poland ShadeHawk on #git - ...
Jan 30, 11:36 pm 2008
Johannes Schindelin
Re: [PATCH] gitweb: Use config file or file for repository o...
Hi, Not if you say "the config overrides the description/cloneurl file", i.e. when there is a description or a cloneurl from the config, don't even bother to stat the single-line files. That would help transition, and still be backwards compatible. (BTW this resembles what we did for the .git/remotes/* -> .git/config transition.) Ciao, Dscho -
Jan 31, 7:12 am 2008
Bruno Cesar Ribas
Re: [PATCH] gitweb: Use config file or file for repository o...
Okay, I agree with you. We need to centralize information. One idea use $GIT_DIR/config only, sharing any other information. But I don't like the idea do parse $GIT_DIR/config everytime. Unless it caches gitweb only information in one line. Another Idea is to use $GIT_DIR/gitweb.conf with information [like the cached above], but generated by the gitweb admin. Other to continue with all those files, but creating a gitweb.d/* . That's what I can think 1:02am =( Good night -- Bruno Ribas -...
Jan 30, 11:02 pm 2008
Shawn O. Pearce
Re: simple cvs-like git wrapper
Yea, that's not a bad idea, because then if a dev wants to make multiple small changes before saying they are finished with a particular request they can. I've got a script I use at final "intergration" point between developers and the testing team that scans through all of the commit messages for all changes since the last integration and updates our issue database automatically to mark those items in some way. Rather short Perl script, except for the 1300 lines of hideous C code to speak to ...
Jan 31, 12:08 am 2008
Junio C Hamano
Re: simple cvs-like git wrapper
I guess you can ask "show-branch --independent" to cull branches that are pure subset of other branches. But no matter how you do this, the resulting history would be less efficient to bisect if you make Octopus. As you can ask "git log --no-merges" to omit merges from the listing, I am not sure if it is worth it to avoid two-side merges and insist on making an Octopus these days. -
Jan 31, 2:17 am 2008
Ed S. Peschko
Re: simple cvs-like git wrapper
Ok, I'm not going to belabor the point, but for the most part, the requests in our particular domain are separate. A developer for the most part works only on files that other developers are not working on. There are exceptions to this, but for the most part this is true.. Hence, most of the time there will be no conflicts. Anyways, I'll try to improve on your script, but it looks like what I hmm. Is there a simple method to get this graph? I'm assuming that you would have to get all the loca...
Jan 31, 1:41 am 2008
Shawn O. Pearce
Re: simple cvs-like git wrapper
Something along these lines: %remotes = \ git for-each-ref \ --format='%(objname) %(refname)' \ refs/remotes/origin; @lines = \ git rev-list \ keys %remotes \ --not HEAD foreach $line in @lines { if $remotes contains $line git merge $remotes{$line} } That gets you the graph. The %(objname) string coming back from for-each-ref is in $line in the loop. If you see $line inside that map you built from for-each-ref then that commit isn't yet in the current branch....
Jan 31, 2:01 am 2008
Jean-Luc Herren
[PATCH] Documentation: Fix typo
Signed-off-by: Jean-Luc Herren <jlh@gmx.ch> --- Beside the obvious s/if/is/ typo, is it easier to read this way? It might be my ears but "is run" sounds strange to me. jlh Documentation/git-cvsserver.txt | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Documentation/git-cvsserver.txt b/Documentation/git-cvsserver.txt index c831548..d3e9993 100644 --- a/Documentation/git-cvsserver.txt +++ b/Documentation/git-cvsserver.txt @@ -183,7 +183,7 @@ access method a...
Jan 30, 10:06 pm 2008
Miklos Vajna
[PATCH] git rev-parse manpage: spelling fix
Signed-off-by: Miklos Vajna <vmiklos@frugalware.org> --- here it is. Documentation/git-rev-parse.txt | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/git-rev-parse.txt b/Documentation/git-rev-parse.txt index af98882..f02f6bb 100644 --- a/Documentation/git-rev-parse.txt +++ b/Documentation/git-rev-parse.txt @@ -234,8 +234,8 @@ blobs contained in a commit. (typically the current branch), and stage 3 is the version from the branch being me...
Jan 31, 3:55 pm 2008
previous daytodaynext day
January 30, 2008January 31, 2008March 1, 2008