git mailing list

FromSubjectsort iconDate
Perrin Meyer
git svn dcommit seg fault
I'm able to clone svn repo's fine with $ git svn clone https://svn.eng.msli.com/perrin/trunk/TESTGIT/ . and I'm then able to use git commit to commit local changes, but when I try $ git svn dcommit I get [perrin@whisper TESTGIT]$ git svn dcommit M test.c Committed r717 Segmentation fault As far as I can tell, the commit worked fine (verified by trying 'svn update' on another box). I've tried git version 1.5.2.3, 1.5.3-rc2, and the latest build, and all give the seg...
Jul 17, 10:51 pm 2007
David Kastrup
Empty directories...
GIT(7) -- 03/05/2007 NAME git - the stupid content tracker Well, I use git for tracking contents. That means, for example, installation trees for some application. Let's take a typical TeXlive tree as an example. Those trees contain, among other things, directories where new fonts/formats/whatever get placed as things run. Quite a few of them start out empty, but their permissions have to correspond to their purpose (for example, some are world-writable). I see little chance to get th...
Jul 17, 8:13 pm 2007
Junio C Hamano
Re: Empty directories...
No objections as long as a patch is cleanly made without regression. It's just nobody agreed that it is "quite serious" yet so far, and no fundamental reason against it. -
Jul 17, 10:23 pm 2007
Matthieu Moy
Re: Empty directories...
,----[ http://www.spinics.net/lists/git/msg30730.html ] | From: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> | | I wouldn't personally mind if somebody taught git to just track empty | directories too. | | There is no fundamental git database reason not to allow them: it's in | fact quite easy to create an empty tree object. The problems with | empty directories are in the *index*, and they shouldn't be | insurmountable. | | [...] `---- -- Matthieu -
Jul 17, 8:39 pm 2007
Johannes Schindelin
Re: Empty directories...
Hi, If you had the idea already, I wonder why you did not find it. It's not really anything like hard to find: http://git.or.cz/gitwiki/GitFaq#head-1fbd4a018d45259c197b169e87dafce2a3c6b5f9 Ciao, Dscho -
Jul 17, 8:35 pm 2007
H. Peter Anvin
Character set for the HTML documentation
The fact that browsers behave this way is of course a bug, but it's a common one. Can we switch the documentation over to UTF-8, this is 2007 after all...? -hpa -
Jul 17, 7:31 pm 2007
Junio C Hamano
Re: Character set for the HTML documentation
By all means, yes. I do not think we particularly wanted to use 8859-1, but nothing in Documentation/ tells the asciidoc toolchain that the document should come out in UTF-8 either. -
Jul 17, 10:02 pm 2007
Johannes Schindelin
[PATCH 3/3] builtin-fetch: fail when fetching refs fails
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> --- builtin-fetch.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/builtin-fetch.c b/builtin-fetch.c index 2f24c22..f1045ac 100644 --- a/builtin-fetch.c +++ b/builtin-fetch.c @@ -381,7 +381,10 @@ static int do_fetch(struct transport *transport, } } - fetch_refs(transport, ref_map); + if (fetch_refs(transport, ref_map)) { + free_refs(ref_map); + return 1; + } fetch_map = ref_...
Jul 17, 6:50 pm 2007
Johannes Schindelin
[PATCH 2/3] Add bundle transport
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> --- transport.c | 52 +++++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 51 insertions(+), 1 deletions(-) diff --git a/transport.c b/transport.c index f444c5b..1532276 100644 --- a/transport.c +++ b/transport.c @@ -5,6 +5,7 @@ #include "pkt-line.h" #include "fetch-pack.h" #include "walker.h" +#include "bundle.h" /* Generic functions for using commit walkers */ @@ -185,7 +186,55 @@ static c...
Jul 17, 6:49 pm 2007
Johannes Schindelin
[PATCH 1/3] Move bundle specific stuff into bundle.[ch]
The transport specific stuff was moved into libgit.a, and the bundle specific stuff will not be left behind. This is a big code move, with one exception: the function unbundle() no longer outputs the list of refs. You have to call list_bundle_refs() yourself for that. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> --- FWIW this patch series is based on the bf_series branch of git://iabervon.org/~barkalow/git.git, revision a204e4b4. Makefile | 2 +- b...
Jul 17, 6:49 pm 2007
Daniel Barkalow
Re: [PATCH 1/3] Move bundle specific stuff into bundle.[ch]
You should use -C on this sort of thing, so that the interesting aspects of the patch are easier to see. (It actually comes out longer in this case, but it's far easier to tell that the code in the new file is the same as the old code.) Can you tell I've been rearranging a lot of code lately and trying to make the patches not look really scary? Aside from presentation, it looks good to me. Shall I stick the bundle changes into my series? I'd like to have them come before the patch to switch...
Jul 17, 10:48 pm 2007
Daniel Barkalow
Re: [PATCH 1/3] Move bundle specific stuff into bundle.[ch]
Actually, I ended up touching this up a tiny bit, too: I ordered the functions in bundle.c the way they were in builtin-bundle.c (so that the patch is more trivial) and removed the blank lines at the end of the file. This makes the "git diff -C" output really obvious. (Someday, I'd like to have a diff that can show that a substantial block of '+' lines matches a block of lines from somewhere in the "before" content, so reviewers can verify that the patch reorders code but doesn't change it...
Jul 17, 11:23 pm 2007
Shawn O. Pearce
Re: [PATCH 1/3] Move bundle specific stuff into bundle.[ch]
I just moved a huge block in git-gui so I have a great example... What about a patch format like this? I doubt people move more than 26 blocks in the same patch of the same file, so using a single character block prefix when the before/after images are identical might work OK. diff --git a/git-gui.sh b/git-gui.sh index 0443129..f13fa80 100755 --- a/git-gui.sh +++ b/git-gui.sh a@@ -632,6 +632,43 a@@ You are using [git-version]: ##########################################################...
Jul 17, 11:29 pm 2007
Mark Levedahl
[PATCH] gitk - Ignore ctrl-z as EOF on windows
Cygwin's Tcl is configured to honor any occurence of ctrl-z as an end-of-file marker, while some commits in the git repository and possibly elsewhere include that character in the commit comment. This causes gitk ignore commit history following such a comment and incorrect graphs. This change affects only Windows as Tcl on other platforms already has eofchar == {}. This fixes problems noted by me and by Ray Lehtiniemi, and the fix was suggested by Shawn Pierce. Signed-off-by: Mark Levedahl <mdl1...
Jul 17, 6:42 pm 2007
Mark Levedahl
(no subject)
From 567906ddb2fbbcf07325acc2808346ad6a472df1 Mon Sep 17 00:00:00 2001 From: Mark Levedahl <mdl123@verizon.net> Date: Tue, 17 Jul 2007 18:35:46 -0400 Subject: [PATCH] gitk - Ignore ctrl-z as EOF on windows To: mlevedahl@verizon.net -=-=-=-=-=-=-=-=-=# Don't remove this line #=-=-=-=-=-=-=-=-=- Cygwin's Tcl is configured to honor any occurence of ctrl-z as an end-of-file marker, while some commits in the git repository and possibly elsewhere include that character in the commit comment....
Jul 17, 6:39 pm 2007
Fredrik Tolf
Re: git-config: replaces ~/.gitconfig symlink with real file
Wouldn't it be nicer to avoid a lot of the complexity in checking symlinks, environment variables and what not, and just overwrite the file in place (with open(..., O_TRUNC | O_CREAT))? Does it happen terribly often that git-config crashes in the middle and leaves the file broken? Fredrik Tolf -
Jul 17, 4:35 pm 2007
Johannes Schindelin
Re: git-config: replaces ~/.gitconfig symlink with real file
Hi, No, it does not. But when it does, I am not only annoyed. I am PISSED! The way we do it is the only safe way to do it, and I gladly spend some extra cycles for that. Too often, a small hard disk glitch (or just an empty laptop battery!) took some important data into the void. Too often, I _cursed_ at the machine, even if it was the programmers' fault. Ciao, Dscho -
Jul 17, 4:48 pm 2007
Eddie Kohler
gitweb: get_file_owner and XML special characters
Hi, I think current gitweb generates invalid XHTML when get_file_owner returns a string containing <>&. (Version 1.5.2.1 certainly does, and in a quick browse of current source I didn't notice relevant changes.) Here is a dirty patch to fix this problem. Apologies if it is no longer a problem or if the patch is gross. Thanks, Eddie (newbie)
Jul 17, 4:06 pm 2007
Marco Costalba
git-log: --topo-order speed-ups the thing !?
Testing with git log performance on Linux tree I found this interesting and unexpected result: $ time git log --parents --boundary --pretty=raw -z --log-size --topo-order HEAD > /dev/null 6.85user 0.20system 0:07.05elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (0major+21142minor)pagefaults 0swaps $ time git log --parents --boundary --pretty=raw -z --log-size HEAD > /dev/null 7.01user 0.09system 0:07.10elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (...
Jul 17, 3:13 pm 2007
Sven Verdoolaege
[PATCH] unpack-trees.c: assume submodules are clean during c...
In particular, when moving back to a commit without a given submodule and then moving back forward to a commit with the given submodule, we shouldn't complain that updating would lose untracked file in the submodule, because git currently does not checkout subprojects during superproject check-out. Signed-off-by: Sven Verdoolaege <skimo@kotnet.org> --- I'm not sure if t7400-submodule-basic is the best place for the test, but it has the right context for the test. skimo t/t7400-submo...
Jul 17, 2:28 pm 2007
Linus Torvalds
Do a better job at guessing unknown character sets
At least in the kernel development community, we're generally slowly converting to UTF-8 everywhere, and the old default of Latin1 in emails is being supplanted by UTF-8, and it doesn't necessarily show up as such in the mail headers (because, quite frankly, when people send patches around, they want the email client to do as little as humanly possible about the patch) Despite that, it's often the case that email addresses etc still have Latin1, so I've seen emails where this is a mixed bag...
Jul 17, 1:34 pm 2007
Johannes Schindelin
Re: Do a better job at guessing unknown character sets
Hi, IMHO this is a good change. Encodings are such a hassle, and probably only because the inventors of ASCII just were narrow-minded enough not to care. With this patch, the hassle factor diminishes AFAICT. Ciao, Dscho P.S.: I think that in case of undesired behaviour, even if it is detected late in the game, filter-branch/rewrite-commits will help. -
Jul 17, 3:56 pm 2007
david
Re: Do a better job at guessing unknown character sets
to be perfectly fair, at the time ASCII was invented it was done to eliminate the use of the different, incompatible character sets that were in use at the time. And it did the job well (I think the only surviver from those sets is EBCDIC, and only due to the legacy installed base) current character encodings are doing things that weren't dreamed of by anyone at the time. David Lang -
Jul 17, 4:01 pm 2007
Richard MUSIL
[PATCH] git-svn: Minimalistic patch which allows svn usernam...
Changed filter for username in svn-authors file, so even 'user name' is accepted. --- git-svn.perl | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/git-svn.perl b/git-svn.perl index 01c3904..975075e 100755 --- a/git-svn.perl +++ b/git-svn.perl @@ -740,7 +740,7 @@ sub load_authors { my $log = $cmd eq 'log'; while (<$authors>) { chomp; - next unless /^(\S+?|\(no author\))\s*=\s*(.+?)\s*<(.+)>\s*$/; + ...
Jul 17, 1:02 pm 2007
Eric Wong
Re: [PATCH] git-svn: Minimalistic patch which allows svn use...
Surely you mean the following: + next unless /^(.+?|\(no author\))\s*=\s*(.+?)\s*<(.+)>\s*$/; (No "\" before the ".") "\." matches a dot/period (.), while "." matches anything. -- Eric Wong -
Jul 17, 3:55 pm 2007
Yakov Lerner
'git gc' & number of unpacked objects ?
By the analogy with the maxtime and maxmount in the ext3 when it reminds you to fsck, when number of mounts since last fsck, or time since last fsck is above some limits. I think this makes practical sense. I think the similar thing makes sense wrt to 'git gc'. Is it possible that git repo had a parameter N, and when the counter of unpacked object hit this number, then git operations start to print semi-annoying warnings "Time to optimize your repo using 'git gc' command ... " ? I am nai...
Jul 17, 12:14 pm 2007
Sam Vilain
Re: 'git gc' & number of unpacked objects ?
I also wrote a commit hook that counts loose objects and just runs repack with differing parameters. Check for threads with terms "generational repack" in them. To make it a really fast check, Linus suggested estimating the number of loose objects with a sample, eg if the threshold is 256 loose objects and you find 3 or more objects in directories 01, 02, and 03 then it's time to repack. I've been using the script I posted on my own repositories for a while and was never really annoyed by the...
Jul 17, 4:57 pm 2007
Amit Walambe
git bisect not accepting -git kernels
Hi! I was trying to do a git bisect on 2.6.22-git6 and 2.6.22-git8. For which I get following error : root@amit:/usr/src/linux-git # git bisect good v2.6.22-git6 Bad rev input: v2.6.22-git6 The repository is obtained by : root@amit:/usr/src # git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6 linux-git I am running following git version on Debian Sid, updated today. # git --version git version 0.99.8.GIT '# dpkg -l | grep git' shows ' git-core 1:1.5.2.3-1' I tri...
Jul 17, 12:03 pm 2007
rene.scharfe
Re: git bisect not accepting -git kernels
The -git snapshots are made automatically by kernel.org, and their name is not included in the git repository. You could create tags for them like this: git tag v2.6.22-git6 8f41958bdd577731f7411c9605cfaa9db6766809 git tag v2.6.22-git8 a5fcaa210626a79465321e344c91a6a7dc3881fa ... and afterwards you can use those revision names with bisect (or other git commands). I've got the commit IDs (i.e. those mysterious 40 hex digits above) from the first line of the changelogs; their URLs are: ht...
Jul 17, 12:48 pm 2007
Amit Walambe
Re: git bisect not accepting -git kernels
Thanks a ton everyone for all the replies. Here is the current status : Ren
Jul 17, 12:58 pm 2007
Rogan Dawes Jul 17, 1:11 pm 2007
Julian Phillips
Re: git bisect not accepting -git kernels
you seem to be missing a "git bisect start" from that sequence ... see the= =20 man page for more details. --=20 Julian --- Peter Griffin: You wanna talk about awkward moments? Once, during sex, I c= alled Lois "Frank". Your move, Sherlock.
Jul 17, 1:10 pm 2007
Amit Walambe
Re: git bisect not accepting -git kernels
>> the commit-id or the tags I created with commands given by Ren
Jul 17, 1:15 pm 2007
Sam Ravnborg
Re: git bisect not accepting -git kernels
The -git# is added by a script and does not exists as tags. The same place where you retreive the -git files has a file identifying the commit that is the latest - use the SHA of this and you should be happy. Sam -
Jul 17, 12:44 pm 2007
Thomas Glanzmann
Re: git bisect not accepting -git kernels
that. Maybe you should build your own git packages. Lucky you that it is pretty easy with debian. Have a look at this thread: http://groups.google.com/group/linux.kernel/browse_thread/thread/b8509269407c0fdc/d05d... especially the first post (scroll up). Thomas -
Jul 17, 12:16 pm 2007
Amit Walambe
Re: git bisect not accepting -git kernels
Hi, Thanks for both the replies. This struck me as being weird, but I thought 'git' utility version is I didn't build my own git version. What I did do was to remove the old git and ensure I am using the Debian installed one. Now I am getting a different error : root@amit:/usr/src/linux-git # which git /usr/bin/git root@amit:/usr/src/linux-git # git --version git version 1.5.2.3 root@amit:/usr/src/linux-git # git bisect good v2.6.22-rc6 root@amit:/usr/src/linux-git # git bisect bad v2.6.22-...
Jul 17, 12:36 pm 2007
Amit Walambe
Re: git bisect not accepting -git kernels
I should call it a day. Above commands are wrong. I need to work on -git kernels and not -rc kernels (as the above commands are showing). I am still getting the same errors I started with : root@amit:/usr/src/linux-git # git bisect good v2.6.22-git6 Bad rev input: v2.6.22-git6 root@amit:/usr/src/linux-git # root@amit:/usr/src/linux-git # root@amit:/usr/src/linux-git # git bisect good v2.6.22-git8 The above greatly applies :) -- Amit Walambe Design Engineer, Arcom Control Systems Ltd. [ message continues ]
" title="http://...">http://...
Jul 17, 1:06 pm 2007
Peter Baumann
Re: git bisect not accepting -git kernels
There is a very old GIT version in your PATH (version 0.99*), which -Peter -
Jul 17, 12:13 pm 2007
Thomas Adam
Seeing differences at origin/branch?
Hello all, This is perhaps going to seem like a very CVS/SVN type of question, but is there a way to see a list of differences between one's local copy and the origin branch? I'm after something analogous to "svn status -u" really (yes, I know I could get my hands scorched for such things. :P). Is this possible? I've tried: git-diff-tree -p origin/master But that won't list changes waiting for me that I would get when I issue a "git pull". Many thanks, Thomas Adam -
Jul 17, 11:53 am 2007
J. Bruce Fields
Re: Seeing differences at origin/branch?
After first doing a "git fetch", to update your local view of those remote branches: Commits on your current branch, not in origin: git diff origin..HEAD Commits in the origin branch, not in your current branch (so this is what you'd probably get if you pulled): git diff HEAD..origin Commits in either one, not in the other (the union of the above two): git diff HEAD...origin The "HEAD" is actually optional in all the above. And, finally, I think gitk HEAD...origin gives...
Jul 17, 12:23 pm 2007
Brian Downing
Re: Seeing differences at origin/branch?
Use "git fetch" to fetch the remote changes, but not merge them into your local tracked branches. "git pull" basically just does "git fetch" then "git merge" into your current branch if it is tracking a remote branch. You might as well use "git diff" as well, as "git-diff-tree" is definitely plumbing. % git fetch origin ... % git diff origin/master -bcd -
Jul 17, 12:12 pm 2007
Josef Sipek
[ANNOUNCE] Guilt v0.26
Guilt v0.26 is available for download (once it mirrors out on kernel.org). Guilt (Git Quilt) is a series of bash scripts which add a Mercurial queues-like functionality and interface to git. Tarballs: http://www.kernel.org/pub/linux/kernel/people/jsipek/guilt/ Git repo: git://git.kernel.org/pub/scm/linux/kernel/git/jsipek/guilt.git Although there was a v0.26-rc1 release, I never announced it so the following summary includes all the changes since v0.25. Unfortunately, it took two months t...
Jul 17, 11:28 am 2007
martin f krafft
gitignore and shared worktrees (was: finding the right remot...
Sorry for the somewhat late reply, I just found time on the weekend to check out this suggestion by Johannes (http://marc.info/?l=3Dgit&m=3D118418927823760&w=3D2) also sprach Johannes Schindelin <Johannes.Schindelin@gmx.de> [2007.07.11.21= This actually seems to work really nicely, but I am somewhat displeased by the gitignore/exclude handling, since it's local. What I want to do is synchronise the vim configuration across many workstations with git, and I don't want to have to ...
Jul 17, 9:09 am 2007
Julian Phillips
Problem running git-gui
I have a machine on which git was installed from a tarball created by running git-archive on master (so a 1.5.3ish version). When I try running git-gui I get an error message: 'Error in startup script: expected version number but got "1.5.3.GIT"' followed by what I assume is a code snippet where it failed (I wouldn't know tcl if it hit me with a large brick). Is this expected? driver error? or maybe a bug? -- Julian --- mixed emotions: Watching a bus-load of lawyers plunge off ...
Jul 17, 7:48 am 2007
Julian Phillips
[PATCH] git-gui: Handle git versions of the form n.n.n.GIT
The git-gui version check doesn't handle versions of the form n.n.n.GIT which you can get by installing from an tarball produced by git-archive. Without this change you get an error of the form: 'Error in startup script: expected version number but got "1.5.3.GIT"' Signed-off-by: Julian Phillips <julian@quantumfyre.co.uk> Well, whichever it is, this seems to fix it for me ... with the proviso that I still no nothing about tcl. I am also not sure if it is correct to do the patch against ...
Jul 17, 5:14 pm 2007
Shawn O. Pearce
Re: [PATCH] git-gui: Handle git versions of the form n.n.n.GIT
Many thanks for the fix. I was about to do this myself but found your message in my inbox instead. Happy days. Fortunately git-am -3 does wonders, and it didn't matter: $ git am -s -3 jp Applying git-gui: Handle git versions of the form n.n.n.GIT error: git-gui/git-gui.sh: does not exist in index Using index info to reconstruct a base tree... Falling back to patching base and 3-way merge... Renamed git-gui/git-gui.sh => git-gui.sh Wrote tree 1909733645c3bd167b1b28...
Jul 17, 9:51 pm 2007
Martin Langhoff
Re: [PATCH] git-gui: Handle git versions of the form n.n.n.GIT
I'm far from an authority on things TCL, but I don't think this patch should be merged as is. Julian is reporting it as a "fixes my symptom" patch, and that's barely what it does. The regex should be more liberal, imho. With this superficial fix: - Builds from a dirty tree have a broken git gui - Builds from a repo with a nonstandard (local) tagname tagname have a broken git gui cheers, martin -
Jul 17, 10:32 pm 2007
Shawn O. Pearce
Re: [PATCH] git-gui: Handle git versions of the form n.n.n.GIT
I think we are now cleaning up the Git version as best we can: regsub -- {-dirty$} $_git_version {} _git_version regsub {\.[0-9]+\.g[0-9a-f]+$} $_git_version {} _git_version regsub {\.rc[0-9]+$} $_git_version {} _git_version regsub {\.GIT$} $_git_version {} _git_version The first fixes the -dirty build problem. The second drops off the extra information that git-describe throws into the mix when it generates output for a non-tagged commit. The third kills the rc* component if this ...
Jul 17, 10:54 pm 2007
Brian Downing
Re: [PATCH] git-gui: Handle git versions of the form n.n.n.GIT
Can we handle versions with '-dirty' at the end as well, or is this ill-advised? For some reason when I build my hacked-up personal debian git version 1.5.3.GIT-dirty and I haven't bothered to find out why. -bcd -
Jul 17, 5:40 pm 2007
Shawn O. Pearce
Re: [PATCH] git-gui: Handle git versions of the form n.n.n.GIT
Already fixed. Please get the latest version of git-gui... -- Shawn. -
Jul 17, 9:52 pm 2007
previous daytodaynext day
July 16, 2007July 17, 2007July 18, 2007