login
Header Space

 
 

git mailing list

FromSubjectsort iconDate
Pavel Roskin
[PATCH] Fix warnings on PowerPC - use C99 printf format if a...
Signed-off-by: Pavel Roskin <proski@gnu.org> --- sha1_file.c | 15 +++++++++++---- 1 files changed, 11 insertions(+), 4 deletions(-) diff --git a/sha1_file.c b/sha1_file.c index 095a7e1..53e25f2 100644 --- a/sha1_file.c +++ b/sha1_file.c @@ -22,6 +22,12 @@ #endif #endif +#ifdef NO_C99_FORMAT +#define SZ_FMT "lu" +#else +#define SZ_FMT "zu" +#endif + const unsigned char null_sha1[20]; static unsigned int sha1_file_open_flag = O_NOATIME; @@ -407,9 +413,9 @@ struct pac...
Jan 10, 12:07 am 2007
Nigel Cunningham
Re: How git affects kernel.org performance
Hi. I gave it a try, and I'm afraid the results weren't pretty. I did: time find /usr/src | wc -l on current git with (3 times) and without (5 times) the patch, and got with: real 54.306, 54.327, 53.742s usr 0.324, 0.284, 0.234s sys 2.432, 2.484, 2.592s without: real 24.413, 24.616, 24.080s usr 0.208, 0.316, 0.312s sys: 2.496, 2.440, 2.540s Subsequent runs without dropping caches did give a significant improvement in both cases (1.821/.188/1.632 is one result I w...
Jan 9, 11:20 pm 2007
Shawn O. Pearce
[PATCH] Don't die in git-http-fetch when fetching packs.
My sp/mmap changes to pack-check.c modified the function such that it expects packed_git.pack_size to be populated with the total bytecount of the packfile by the caller. But that isn't the case for packs obtained by git-http-fetch as pack_size was not initialized before being accessed. This caused verify_pack to think it had 2^32-21 bytes available when the downloaded pack perhaps was only 305 bytes in length. The use_pack function then later dies with "offset beyond end of packfile" when compu...
Jan 9, 9:04 pm 2007
Junio C Hamano
Re: [PATCH] Don't die in git-http-fetch when fetching packs.
Ah, thanks. I've seen this today and a repeated fetch after that fixed it and thought it was a mirroring lag. -
Jan 9, 9:10 pm 2007
Shawn O. Pearce
Re: [PATCH] Don't die in git-http-fetch when fetching packs.
Me too. I have actually been fighting with it on and off since we got sp/mmap reasonably stable. I just always kept attributing it to kernel.org mirroring lag until I realized it was just happening way too often. -- Shawn. -
Jan 9, 9:28 pm 2007
Jakub Narebski
Re: [PATCH] Detached HEAD (experimental)
By the way, would detached HEAD be reflogged, and if it would (and certainly it would be nice to have, because protection or not sh*t happens) how it would be implemented? -- Jakub Narebski Warsaw, Poland ShadeHawk on #git -
Jan 9, 8:26 pm 2007
Shawn O. Pearce
Re: [PATCH] Detached HEAD (experimental)
Ohhhhh. It should reflog if .git/logs/HEAD exists, so long as changes to HEAD are done via update-ref and not just by echo (as one of Junio's versions of the feature had done). Unfortunately .git/logs/HEAD wouldn't be created by default as its not under refs/heads or refs/remotes. Though it could be made to be on by default, in which case it would only log changes while HEAD is detached. If HEAD is attached to a branch then .git/logs/HEAD wouldn't be appended to (or even created), while the br...
Jan 9, 8:34 pm 2007
Nicolas Pitre
Re: [PATCH] Detached HEAD (experimental)
Is this worth the trouble and complexity? After all detached heads are not meant to be used for serious development. Nicolas -
Jan 9, 9:15 pm 2007
Jakub Narebski
Re: [PATCH] Detached HEAD (experimental)
I think reflogging detached HEAD is easier than adding safety checks either on commit (no commits on top of detached HEAD), or on checkouts and stuff (try not to loose unless forced chain of commits built on top of detached HEAD). -- Jakub Narebski Poland -
Jan 9, 9:37 pm 2007
Junio C Hamano Jan 9, 9:24 pm 2007
Shawn O. Pearce
Re: [PATCH] Detached HEAD (experimental)
git checkout v1.4.0 # dang, need some local fix git commit -m tmpfix -a git reset --hard v1.2.0 git reset --hard v1.3.0 # dang, need that local again fix - where is it? It ain't in ORIG_HEAD. Its now only findable by fsck-objects/lost-found. But if you reflog a detached HEAD its there as HEAD@{2}. Maybe its not really worth it. But it almost seems like it would come free if we always use update-ref like we're supposed to... -- Shawn. -
Jan 9, 9:40 pm 2007
Nicolas Pitre
Re: [PATCH] Detached HEAD (experimental)
cd / ls # wow lots of files rm -rf . # dang dunk down So just don't use git-reset but create a branch to preserve that local Which is good enough in that circumstance IMHO. We cannot always try to But when your head is not detached anymore then HEAD@{2} changes meaning and that is rather not good. Nicolas -
Jan 9, 9:54 pm 2007
Shawn O. Pearce
Re: [PATCH] Detached HEAD (experimental)
Ah, yes, apparently my own head is detached and not clearly thinking. Thanks. That UI is not so good. -- Shawn. -
Jan 9, 10:28 pm 2007
J. Bruce Fields
Re: [PATCH] Detached HEAD (experimental)
That would also provide all the needed "safety valve" on git checkout, wouldn't it? Since you could always recover from git checkout v1.4.0 git commit -m -a 'some changes' git checkout 41.2.0 by looking back through the reflog for HEAD. --b. -
Jan 9, 9:03 pm 2007
Shawn O. Pearce
Re: [PATCH] Detached HEAD (experimental)
Yes. Then that removes my desire for a safety check in reset, (which Linus doesn't want) thereby making both of us happy. -- Shawn. -
Jan 9, 9:07 pm 2007
Steven Grimm
[PATCH] Update git-svn manpage to remove the implication tha...
Now that git-svn requires the SVN::* Perl library, the manpage doesn't need to describe what happens when you don't have it. Signed-off-by: Steven Grimm <koreth@midwinter.com> --- Documentation/git-svn.txt | 65 ++++---------------------------------------- 1 files changed, 6 insertions(+), 59 deletions(-) diff --git a/Documentation/git-svn.txt b/Documentation/git-svn.txt index 8df43cb..1b01313 100644 --- a/Documentation/git-svn.txt +++ b/Documentation/git-svn.txt @@ -249,8 +249,7 @@ r...
Jan 9, 8:20 pm 2007
Junio C Hamano Jan 9, 8:42 pm 2007
Eric Wong
Re: [PATCH] Update git-svn manpage to remove the implication...
Yes, thanks. Signed-off-by: Eric Wong <normalperson@yhbt.net> -- Eric Wong -
Jan 9, 9:04 pm 2007
Steven Grimm
Recovering from an aborted git-rebase?
Got this from one of the other people here who's using git. Luckily he was able to restore his repo from a filesystem snapshot, so no permanent harm done, but what's the pure-git way to recover from this? Are the revisions in question really gone? --- I have 3 branches: master fql fql-new master is basically just the same as remotes/git-svn, fql is a bunch of changes on top of that, and then fql-new is a new version of FQL so it makes changes on top of the changes in fql (with the intention ...
Jan 9, 7:20 pm 2007
Junio C Hamano
Re: Recovering from an aborted git-rebase?
Doesn't "git rebase --abort" work for you at this point? -
Jan 9, 8:25 pm 2007
Shawn O. Pearce
Re: Recovering from an aborted git-rebase?
Try `git lost-found` before you use `git prune` (or also now `git gc`). Also, if you have relogs enabled on your work branches (and I hope you do, as its now the default) you can look at the branch from earlier, e.g.: git log HEAD@{5.minutes.ago} or git log HEAD@{1} to look at HEAD was just before `git rebase` did the reset. Which would be the commit you lost, but want back. Unfortunately we don't really have a reflog viewing utility yet so you just have to sort of guess around with...
Jan 9, 7:29 pm 2007
Guilhem Bonnefille
Howto use StGit and git-svn at same time
Hi, I'm a newbie and I'm using: - git-svn to connect to a public SVN repo, - StGit to manage my patches for the project hosted by this repo. The current GIT repo was previously cloned from a GIT repo made with git-cvsimport. But the project moved to SVN, so I removed the GIT repo connected to the CVS. I succesfully fetch the SVN, create a "work" local branch (connected to remotes/trunk), and create some patches. As the SVN evolved, I wish to retrieve info and update my patches. So I tried ...
Jan 9, 5:35 pm 2007
Guilhem Bonnefille
Re: Howto use StGit and git-svn at same time
Humh... I finished the conflicts solving game. I think the way I choosed is incorrect. Following gitk, it is now a big big bazaar in my commits history. Can you give me some tips about using both git-svn and stgit please? -- Guilhem BONNEFILLE -=- #UIN: 15146515 JID: guyou@im.apinc.org MSN: guilhem_bonnefille@hotmail.com -=- mailto:guilhem.bonnefille@gmail.com -=- http://nathguil.free.fr/ -
Jan 9, 5:41 pm 2007
Yann Dirson
Re: Howto use StGit and git-svn at same time
Right, you should not use git-rebase on a StGIT branch :) What you should have done is moving your stack base from your old origin branch to remotes/trunk - something that StGIT does not support yet from command-line, but I've done this manually in the past (migrating an StGIT stack after re-running a full git-cvsimport after the original cvs branch got corrupted). Something along the line of (untested, off the top of my head): $ stg pop -a $ echo <TARGET-SHA1> > .git/refs/heads/&...
Jan 9, 6:41 pm 2007
Marco Costalba
[ANNOUNCE] qgit4 aka qgit ported to Windows
I have setup, (thanks Pasky) the repository git://repo.or.cz/qgit4.git With an experimental version of qgit, called qgit4. Features are the same of qgit-1.5.4 release but has been ported under Qt4.2 libraries from Qt3, this means that could be compiled and run as a Windows native application. Qt4.2 is available as GPL for non commercial purposes also for Windows platform. So what you need is: 1) Qt4.2 already packaged with MinGW for windows ([ message continues ]
" title="http://www.trolltech.com/developer/do...">http://www.trolltech.com/developer/do...
Jan 9, 5:14 pm 2007
Josef Weidendorfer
Re: [ANNOUNCE] qgit4 aka qgit ported to Windows
Nice. Why not as branch in the original qgit repository? You are losing all your history this way. Josef -
Jan 9, 5:55 pm 2007
Marco Costalba
Re: [ANNOUNCE] qgit4 aka qgit ported to Windows
Well, Qt4 it's completely different from Qt3, porting it's a nice way to say rewrite. So moving patches between the two branches it's very difficult already now and it will be impossible in a near future not because of development forking, but because of API. This means two different and *not mergeable* branches. Being not mergeable they lose the main motivation to be in the same repository IMHO. Also I would like to continue to support and improve the stable and proven Qt3 version on kernel.org ...
Jan 9, 6:30 pm 2007
Yann Dirson
Re: [ANNOUNCE] qgit4 aka qgit ported to Windows
Well, this also means you lose the history trail of you project. Just suppose one day you'll face a piece of your code which you don't understand any more (face it, we all have that strange "did *I* write that ?" feeling some day ;). Being able to hunt it down is nice - and grafting the qt3-based repo will only be useful it you know precisely where to put the graft... Best regards, -- Yann. -
Jan 9, 6:47 pm 2007
Stefan-W. Hahn
[PATCH] Replacing the system call pread() with lseek()/xread...
Thanks for the hints, here the next try. Stefan -
Jan 9, 5:04 pm 2007
Stefan-W. Hahn
[PATCH] Replacing the system call pread() with lseek()/xread...
From: Stefan-W. Hahn <stefan.hahn@s-hahn.de> Using cygwin with cygwin.dll before 1.5.22 the system call pread() is buggy. This patch introduces NO_PREAD. If NO_PREAD is set git uses a sequence of lseek()/xread()/lseek() to emulate pread. Signed-off-by: Stefan-W. Hahn <stefan.hahn@s-hahn.de> --- Makefile | 7 +++++++ compat/pread.c | 18 ++++++++++++++++++ git-compat-util.h | 5 +++++ 3 files changed, 30 insertions(+), 0 deletions(-) diff --git a/Makefile b/Ma...
Jan 9, 5:04 pm 2007
Andy Whitcroft
Re: [PATCH] Replacing the system call pread() with lseek()/x...
Seems to be style inconsistancy between current_offset = and rc= I How likely are we ever to be in the right place here? Seems vanishingly small putting us firmly in the four syscalls per call space. I wonder if git ever actually cares about the seek location. ie if we could stop reading and resetting it. Probabally not worth working it out I guess -apw -
Jan 9, 5:41 pm 2007
Johannes Schindelin
Re: [PATCH] Replacing the system call pread() with lseek()/x...
Hi, You mean something like if (current_offset != offset + count && current_offset != lseek(fd, current_offset, SEEK_SET)) return -1; instead? Seems cheap enough. Ciao, Dscho -
Jan 9, 7:42 pm 2007
Nicolas Pitre
Re: [PATCH] Replacing the system call pread() with lseek()/x...
In the index-pack case it simply will never happen. Nicolas -
Jan 9, 8:59 pm 2007
Shawn O. Pearce
Re: [PATCH] Replacing the system call pread() with lseek()/x...
With the exception of this style difference, the patch looked pretty good. Nice work Stefan. Andy's right, we do tend to prefer "rc = read_in_full" over "rc=read_in_full". Quite a bit actually, though Junio is the final decider on all such matters as he gets Andy's right actually. If we are using pread() we aren't relying on the current file pointer. Which means its unnecessary to get the current pointer before seeking to the requested offset, and its unnecessary to restore it before the git...
Jan 9, 7:25 pm 2007
Nicolas Pitre
Re: [PATCH] Replacing the system call pread() with lseek()/x...
No this is wrong. The original offset _has_ to be preserved. index-pack counts on it. Nicolas -
Jan 9, 9:12 pm 2007
Junio C Hamano
Re: [PATCH] Replacing the system call pread() with lseek()/x...
I am a nice guy and do not reject a patch for missing two SP characters which means I have to --amend it which takes time The caller of pread() does not care the current position, but that is not to mean it does not care the position after pread() returns. The current callers do not care, though. -
Jan 9, 8:21 pm 2007
Johannes Schindelin
Re: [PATCH] Replacing the system call pread() with lseek()/x...
Hi, Not completely true. We fixed in v1.4.4.1~23 a bug which was triggered by NO_MMAP. Since this recently became the default for cygwin, "git-index-pack --fix-thin" would fail in most cases. Ciao, Dscho -
Jan 9, 8:30 pm 2007
Alexandre Julliard
[PATCH] git.el: Define the propertize function if needed, fo...
Also use `concat' instead of `format' in the pretty-printer since format doesn't preserve properties under XEmacs. Signed-off-by: Alexandre Julliard <julliard@winehq.org> --- contrib/emacs/git.el | 18 +++++++++++++----- 1 files changed, 13 insertions(+), 5 deletions(-) diff --git a/contrib/emacs/git.el b/contrib/emacs/git.el index ede3ab2..d90ba81 100644 --- a/contrib/emacs/git.el +++ b/contrib/emacs/git.el @@ -280,6 +280,15 @@ and returns the process output as a string." (git-...
Jan 9, 4:27 pm 2007
Alexandre Julliard
[PATCH] git-clone: Make sure the master branch exists before...
Otherwise we get an error like this on stderr: cat: [...]/.git/refs/remotes/origin/master: No such file or directory which makes it look like git-clone failed. Signed-off-by: Alexandre Julliard <julliard@winehq.org> --- git-clone.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/git-clone.sh b/git-clone.sh index 3d388de..cf761b2 100755 --- a/git-clone.sh +++ b/git-clone.sh @@ -355,7 +355,7 @@ then # The name under $remote_top the remote HEAD seems to ...
Jan 9, 4:26 pm 2007
Alexandre Julliard
[PATCH] git-apply: Remove directories that have become empty...
Signed-off-by: Alexandre Julliard <julliard@winehq.org> --- builtin-apply.c | 16 +++++++++++++++- 1 files changed, 15 insertions(+), 1 deletions(-) diff --git a/builtin-apply.c b/builtin-apply.c index 1c35837..fac8349 100644 --- a/builtin-apply.c +++ b/builtin-apply.c @@ -2239,7 +2239,21 @@ static void remove_file(struct patch *patch) cache_tree_invalidate_path(active_cache_tree, patch->old_name); } if (!cached) - unlink(patch->old_name); + { + if (!unlink(patch-&g...
Jan 9, 4:25 pm 2007
Junio C Hamano
Re: [PATCH 1/2] Sanitize for_each_reflog_ent()
That's fine. I applied your patch with minimum fixups so that it does not make the surviving records _invalid_ ones after "reflog expire" runs ;-). -
Jan 9, 4:22 pm 2007
Johannes Schindelin
Re: [PATCH 1/2] Sanitize for_each_reflog_ent()
Hi, Ah! Missed that one. Thanks! Ciao, Dscho -
Jan 9, 7:40 pm 2007
Junio C Hamano
Re: a few remaining issues...
What does it do when you say, for example: git log --walk-reflogs master..next I couldn't make heads or tails out of the patch and did not understand what it was trying to do. It looked as if you were making the log traversal machinery to walk _both_ reflog (probably from the latest to older) and the usual ancestry. -
Jan 9, 4:22 pm 2007
Johannes Schindelin
Re: a few remaining issues...
Hi, It means that (ideally) all revisions are shown which are in the reflog chain of next, and _not_ in the reflog chain of master. However, once the reflog traversal hits the oldest reflog entry, it Yes, first reflog, then usual ancestry. Would you want that changed to _only_ reflog traversal? Ciao, Dscho -
Jan 9, 7:53 pm 2007
Shawn O. Pearce
Re: a few remaining issues...
No, I had not had a chance to look at it. I don't see the patch in my inbox currently, so I must have deleted it earlier. As much as I want this feature in 1.5.0's final release I don't really have the time/inclination to dredge though my own local mailing list archives or through the online ones to locate it either. Right now I want to track down a nasty bug in git-http-fetch that I noticed recently that's keeping me from tracking git.git through an HTTP proxy, and then I need to do some hacki...
Jan 9, 8:16 pm 2007
Johannes Schindelin
Re: a few remaining issues...
Hi, Fair enough. It actually simplifies the patch. And if you want to dig on, you can just "git log pu@{whatever}", right? So, is this wanted? (If not, I'd rather spend my time on my day job...) Ciao, Dscho -
Jan 9, 9:23 pm 2007
Junio C Hamano
Re: [PATCH] Replacing the system call pread() with lseek()/x...
Style: please don't have declaration after statement. Yes, it is in the more recent ANSI, but the rest of git has avoided it so far and having the decls upfront makes it easier to read. I do not think you would want to return EINVAL. Andy's read_in_full() is now on 'master' so please use it instead to avoid short read. -
Jan 9, 4:21 pm 2007
Nicolas Pitre Jan 9, 3:48 pm 2007
Stefan-W. Hahn
[PATCH] Replacing the system call pread().
Ok, following the next try for replacing pread() with lseek()/xread()/lseek() sequence like Shawn suggested. It's tested on Linux but not yet on Cygwin. I'll do it tomorrow. Stefan -
Jan 9, 2:51 pm 2007
Stefan-W. Hahn
[PATCH] Test for failing pread() on cygwin.
From: Stefan-W. Hahn <stefan.hahn@s-hahn.de> Signed-off-by: Stefan-W. Hahn <stefan.hahn@s-hahn.de> --- t/t5610-clone-fail.sh | 29 +++++++++++++++++++++++++++++ 1 files changed, 29 insertions(+), 0 deletions(-) diff --git a/t/t5610-clone-fail.sh b/t/t5610-clone-fail.sh new file mode 100755 index 0000000..d30b25e --- /dev/null +++ b/t/t5610-clone-fail.sh @@ -0,0 +1,29 @@ +#!/bin/sh +# +# Copyright (C) 2007 Stefan-W. Hahn <stefan.hahn@s-hahn.de> +# + +test_descriptio...
Jan 9, 2:51 pm 2007
previous daytodaynext day
January 8, 2007January 9, 2007January 10, 2007
speck-geostationary