git mailing list

FromSubjectsort iconDate
linux
Re: kernel.org mirroring (Re: [GIT PULL] MMC update)
I think I agree with you, but not as strongly. Certainly, having any kind of effective cacheing (heck, just comparing the timestamp of the relevant ref(s) with the If-Modified-Since: header) will help kernel.org enormously. But as soon as there's a push, particularly a release push, that invalidates *all* of the popular pages *and* the thindering herd arrives. The result is that all of the popular "what's new?" summary pages get fetched 15 times in parallel and, because the front end doesn't s...
Dec 10, 11:40 pm 2006
J. Bruce Fields
asciidoc, docbook, "book" doctype
I've been fooling around with producing a longer piece of documentation using material from the tutorials, etc., using the docbook backend and "book" doctype. It's not working quite the way I'd expect. For example, it doesn't format the literal blocks correctly, and man page links aren't producing useful clickable links. Should I be going about this some other way? All I really want is automatically generated tables of contents and cross-references. --b. -
Dec 10, 11:20 pm 2006
Jakub Narebski
Re: [ANNOUNCE] CGit v0.1-pre
Miscalculation: it is 5 with yours (6 counting gittracker). -- Jakub Narebski Poland -
Dec 10, 8:29 pm 2006
Jakub Narebski
Re: [ANNOUNCE] CGit v0.1-pre
I have added this to GitWiki: check out http://git.or.cz/gitwiki/InterfacesFrontendsAndTools#cgit Hmmm... git has now 4 web interfaces (5 if counting gittracker, which works but gittracker repository shows empty): gitweb in Perl, git-php in PHP, wit in Python (is it actively developed? where it can be downloaded from?), gitarella in Ruby, now CGit in C... By the way, it is cgit, CGit or CGIt ;-p? -- Jakub Narebski Warsaw, Poland ShadeHawk on #git -
Dec 10, 8:08 pm 2006
Lars Hjemli
[ANNOUNCE] CGit v0.1-pre
CGit is another cgi-app for git. It is written in C (using libgit.a), and implements an internal page cache. A PoC version is available for cloning at git://hjemli.net/pub/git/cgit and it is also (barely) selfhosted at http://hjemli.net/git/ For a quick summary of the cache algorithm, the project README is here: http://hjemli.net/git/cgit/view/?id=5917c37ce30b3f0a374c9fa376955f51f1d7bfbf Enjoy! -- larsh -
Dec 10, 7:42 pm 2006
Linus Torvalds
Re: [ANNOUNCE] CGit v0.1-pre
Your pseudo-algorithm is dubious: name = generate_cache_name(request); top: if (!exists(name)) { if (lock_cache(name)) { generate_cache(request, name); unlock_cache(name); } else { sched_yield(); goto top; } } else if (expired(name)) { if (lock_cache(name)) { generate_cache(request, name); unlock_cache(name); } } print_file(name); You really should have: if (!exists) { if (!lock) delay-and-repeat; /* RETEST exists ...
Dec 10, 9:04 pm 2006
Jakub Narebski
Re: [PATCH] remove "[PATCH]" prefix from shortlog output
What happens if you have "[PATCH" without closing "]"? Does it work (and doesn't crash)? Does it strip anything? -- Jakub Narebski Warsaw, Poland ShadeHawk on #git -
Dec 10, 7:10 pm 2006
Johannes Schindelin
Re: [PATCH] remove "[PATCH]" prefix from shortlog output
Hi, Use the source, Luke! If "[PATCH" is there, but "]" is not, then eob will be NULL, and nothing happens. Well, actually it is not completely true: the code searches for "]" in the _complete_ commit message (which _is_ terminated by '\0'). But only if it is found, _and_ it is in the first line, the substring is trimmed away. Hth, Dscho -
Dec 10, 7:35 pm 2006
Doug Maxey
[RFC/PATCH] gitk: add current directory to main window title
From fe613c56b0079871e6b862077a9d673ca064cc16 Mon Sep 17 00:00:00 2001 From: Doug Maxey <dwm@bebe.enoyolf.org> Date: Sun, 10 Dec 2006 14:02:50 -0600 Signed-off-by: Doug Maxey <dwm@enoyolf.org> --- Based off gitk#master. It helps me, being greyware challenged, keep track of which gitk is active for a given directory. --- gitk | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/gitk b/gitk index 3dabc69..b8fd6ca 100755 --- a/gitk +++ b/gitk @@ -6293,6 +6...
Dec 10, 4:31 pm 2006
Jakub Narebski
Re: Using GIT to store /etc (Or: How to make GIT store all f...
The idea is to not store /etc in git directly, but use import/export scripts, which for example saves permissions and ownership in some file also tracked by git on import, and restores correct permissions on export. That is what I remember from this discussion. This of course means that you would have to write your own porcelain... What about mentioned in other email IsiSetup? -- Jakub Narebski Warsaw, Poland ShadeHawk on #git -
Dec 10, 2:18 pm 2006
Jakub Narebski
Re: Using GIT to store /etc (Or: How to make GIT store all f...
Kyle Moffett wrote: > The simplest solution which admittedly breaks the ability of older
Dec 10, 2:10 pm 2006
Jakub Narebski
Re: reexporting git repository via git-daemon
It should be "git clone --bare git://git.kernel.org/pub/scm/git/git.git" or "git clone --bare git://git.kernel.org/pub/scm/git/git.git git.git" True, the error messages of git-clone are bit cryptic and doesn't give us much information. Does there exist such repository? Perhaps WORKSFORME $ git --version git version 1.4.4.1 $ git clone --bare git://git.kernel.org/pub/scm/git/git.git remote: Generating pack... remote: Done counting 33587 objects. remote: Deltifying 33587 objects. remo...
Dec 10, 1:35 pm 2006
Arkadiusz Miskiewicz
Re: reexporting git repository via git-daemon
Now I tracked that down to git-daemon in version 1.4.2.4 not 1.4.4.2. Seems that something was later fixed, so 1.4.4.2 is OK. | -- Arkadiusz Mi
Dec 10, 1:43 pm 2006
Han Boetes
curl with ares support
Hi, This is what my libcurl libs looks like: ~% pkg-config --libs libcurl -lcurl -lcares -lidn -lssl -lcrypto -ldl -lz But the git Makefile assumes '-lcurl' will do. Bug identical to: https://trac.xiph.org/ticket/1092 # Han -- _/| VK |\_ // o\ Decision maker, n.: The person in your office who /o \\ || ._) was unable to form a task force before the music (_. || //__\ ...
Dec 10, 1:26 pm 2006
Nicolas Vilz
Problems with git-svn authors file
hello, i tried to use git-svn with author-files and got stuck with following error message: Use of uninitialized value in hash element at /usr/bin/git-svn line 2952. Use of uninitialized value in concatenation (.) or string at /usr/bin/git-svn line 2953. Author: not defined in .git/info/svn-authors file 512 at /usr/bin/git-svn line 457 main::fetch_lib() called at /usr/bin/git-svn line 328 main::fetch() called at /usr/bin/git-svn line 187 my svn-authors file looks like thi...
Dec 10, 1:26 pm 2006
Jakub Narebski
Re: Collection of stgit issues and wishes
I use stgit 0.11 1056:[gitweb/web!git]$ stg help usage: stg help <command> Ah. I'm sorry, I haven't noticed this. It is Hmmm... in stgit 0.11 "stg refresh --sign" once gave me Signed-off-by: The git commands StGit uses to perform operations automatically record changes in branches in reflog. What StGit does not provide is the "reason". You do use git-update-ref? -- Jakub Narebski Poland -
Dec 10, 1:01 pm 2006
Catalin Marinas
Re: Collection of stgit issues and wishes
Yes, only for updating HEAD. The refs in refs/patches/<branch>/ are written directly. I initialy wanted to add patch history support using reflogs and added "git-update-ref -m ..." for the patch commits but I found slow the pushing operation a bit. Do you only want to track the reflogs for HEAD? -- Catalin -
Dec 10, 6:26 pm 2006
Jakub Narebski
Re: Collection of stgit issues and wishes
Yes, I want for StGit to provide reasons when updating HEAD. I know that StGit manages it's own versioning of patches not using reflog -- fine. What matters for me is reflog for HEAD after "stg commit; stg clean". -- Jakub Narebski Poland -
Dec 10, 7:02 pm 2006
Catalin Marinas
Re: Collection of stgit issues and wishes
Just curious, do you run the "stg commit; stg clean" commands together and in this order? Neither of them would update the HEAD. The "commit" command simply removes the StGIT metadata for the applied patches since it no longer needs to track them (permanently stored to the repository). It doesn't change HEAD. The "clean" command only affects the HEAD if there are empty applied patches but after a "commit" there won't be any patches (only the unapplied ones which do not affect HEAD). Maybe we cou...
Dec 10, 7:24 pm 2006
Jakub Narebski
Re: Collection of stgit issues and wishes
Ooops, I haven't been clear enough. I meant that afer "stg commit; stg clean" I won't have any StGIT metadata, but I'd have git metadata in reflog. I'd like to have info in reflog for each command which changes head; for example "push", "refresh", perhaps "pop", "float", "uncommit". Just so I don't have long sequence of ref changes in reflog without description of said changes after some work with StGIT on branch. BTW. currently I use StGIT to manage a series of commits on feature branch w...
Dec 10, 7:37 pm 2006
Catalin Marinas
Re: RFC PATCH: support for default remote in StGIT
Yann started a thread on this but I didn't find the time to look at this properly. He's idea was to store the remote branch information in the StGIT metadata but I'd like to leave this for GIT to deal with. The StGIT UI can probably be modified to display something useful but With the recent changes, StGIT shares the config files with GIT and it has direct access to git settings without the need to use git-repo-config. Just use "config.has_key" and "config.get_option". Maybe a combination o...
Dec 10, 12:41 pm 2006
Jakub Narebski
Re: Using GIT to store /etc (Or: How to make GIT store all f...
There is currently no place for ownership and extended attributes in the tree object; and even full POSIX permissions might be challenge because for example currently unused 'is socket' permission bit is used for experimental commit-in-tree submodule support. And given Linus stance that git is "content tracker"... In the loooong thread "VCS comparison table" there was some talk about using git (or any SCM) to manage /etc. Check out: * Message-ID: <Pine.LNX.4.64.0610220926170.3962@g5.osdl....
Dec 10, 11:30 am 2006
Kyle Moffett
Re: Using GIT to store /etc (Or: How to make GIT store all f...
Hmm, unfortunately that has problems with security-related race conditions when used directly for /etc. Think about what happens with "/etc/shadow" in that case, for example. (/etc/.git is of course 0700) I'm sure there are others where non-root daemons get unhappy when they get an inotify event and their config files have suddenly become root:root:0600. I also want to be able to "cd /etc && git status" to see what changed after running "apt-get update" or maybe fiddling i...
Dec 10, 2:10 pm 2006
Jakub Narebski
Re: Using GIT to store /etc (Or: How to make GIT store all f...
>>> I actively use git to version, store and distribute an exim mail
Dec 10, 2:26 pm 2006
Kyle Moffett
Re: Using GIT to store /etc (Or: How to make GIT store all f...
The real problem I have with that is you literally have to duplicate all sorts of functionality. I want to run "foo-status" in /etc and get something useful, but if /etc is not a git directory in and of itself then you have to duplicate most of "git-status" anyways. And the same applies to all the other commands. From what I can see of IsiSetup the tools for checking out, merging, modifying, cloning, etc are all much more limited and immature than the ones available through GIT/cog...
Dec 10, 2:35 pm 2006
Clemens Buchacher
*** SPAM ***
Make sure $EDITOR is executed as a command --- commit 942341e051fdcbb77a6abfbc58cf08ef8cab388d tree 96e8fd08cdc7c59b0d3d55d7cb5b4302db443aff parent b6a6e87cb3e1368ad0f78c18fdb6c29dde4ae83e author Clemens Buchacher <drizzd@aon.at> Sun, 10 Dec 2006 14:37:37 +0100 committer Clemens Buchacher <drizzd@aon.at> Sun, 10 Dec 2006 14:37:37 +0100 cg-Xlib | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/cg-Xlib b/cg-Xlib index c1262bf..9d04eb4 100755 --- a/cg-Xlib ...
Dec 10, 9:57 am 2006
Clemens Buchacher
Re: [PATCH] editor: make sure $EDITOR is executed as a command
Hi, Sorry about the missing subject. Make sure $EDITOR is executed as a command. Otherwise, _editor may fail if $EDITOR is set to something like 'editor', which is also a function within cg-Xlib. Signed-off-by: Clemens Buchacher <drizzd@aon.at> --- commit 942341e051fdcbb77a6abfbc58cf08ef8cab388d tree 96e8fd08cdc7c59b0d3d55d7cb5b4302db443aff parent b6a6e87cb3e1368ad0f78c18fdb6c29dde4ae83e author Clemens Buchacher <drizzd@aon.at> Sun, 10 Dec 2006 14:37:37 +0100 committer Clemens B...
Dec 10, 10:04 am 2006
Kyle Moffett
Using GIT to store /etc (Or: How to make GIT store all file ...
I've recently become somewhat interested in the idea of using GIT to store the contents of various folders in /etc. However after a bit of playing with this, I discovered that GIT doesn't actually preserve all permission bits since that would cause problems with the more traditional software development model. I'm curious if anyone has done this before; and if so, how they went about handling the permissions and ownership issues. I spent a little time looking over how GIT stores and c...
Dec 10, 9:40 am 2006
sbejar
Re: Using GIT to store /etc (Or: How to make GIT store all f...
I have not used it, but you could try: http://www.isisetup.ch/ that uses git as a backend. Santi -
Dec 10, 11:06 am 2006
Kyle Moffett Dec 10, 1:46 pm 2006
Jeff Garzik
Re: Using GIT to store /etc (Or: How to make GIT store all f...
It's a great idea, something I would like to do, and something I've suggested before. You could dig through the mailing list archives, if you're motivated. I actively use git to version, store and distribute an exim mail configuration across six servers. So far my solution has been a 'fix perms' script, or using the file perm checking capabilities of cfengine. But it would be a lot better if git natively cared about ownership and permissions (presumably via an option). Jeff - ...
Dec 10, 10:49 am 2006
Marco Costalba
[RFC \ WISH] Add -o option to git-rev-list
I have done some tests about reading git-rev-list output with different IPC facilities: - Native Qt QProcess socket based IPC - pipe based: popen() and fread() - redirecting git-rev-list to a file (under tmpfs) and 'block reading' back the file: read() under Qt QFile class. The file, always in memory, is deleted at the end of loading. I have tested with different block sizes and different CPU speed on linux and git trees. The averaged results on linux tree (about 30MB of data) and CPU s...
Dec 10, 7:38 am 2006
Linus Torvalds
Re: [RFC \ WISH] Add -o option to git-rev-list
Why don't you use the pipe and standard read()? Even if you use "popen()" and get a "FILE *" back, you can still do int fd = fileno(file); and use the raw IO capabilities. The thing is, temporary files can actually be faster under Linux just because the Linux page-cache simply kicks ass. But it's not going to be _that_ big of a difference, and you need all that crazy "wait for rev-list to finish" and the "clean up temp-file on errors" etc crap, so there's no way it's a better solu...
Dec 10, 2:16 pm 2006
Marco Costalba
Re: [RFC \ WISH] Add -o option to git-rev-list
Two things. - memory use: the next natural step with files is, instead of loading the file content in memory and *keep it there*, we could load one chunk at a time, index the chunk and discard. At the end we keep in memory only indexing info to quickly get to the data when needed, but the big part of data stay on the file. - This is probably my ignorance, but experimenting with popen() I found I could not know *when* git-rev-list ends because both feof() and ferror() give 0 after a fread() wit...
Dec 10, 3:51 pm 2006
Linus Torvalds
Re: [RFC \ WISH] Add -o option to git-rev-list
Well, that's still just going slower than swapping. The reason loading things into memory is nice is that: - in the common case, you don't need to do anything else. - if the machine is low on memory, it can page things out just about as easily as you could write things to a file anyway. So don't worry too much about low-memory situations. Yes, there are cases where it's better to keep things in files and simply not have a big working set AT ALL, but if you keep something in a file ...
Dec 10, 4:08 pm 2006
Linus Torvalds
Re: [RFC \ WISH] Add -o option to git-rev-list
Btw, I should obviously clarify that. You should _always_ worry about low-memory situations, but the only real issue is really "working set size", not "data in files or in memory". If the file representation is very dense (like the git pack-files are, for example), then it may well make sense to keep the data in a file, just because it's smaller there than if you keep it in expanded form in memory. Also, it's nice to keep stuff in the filesystem rather than in process VM memory, becaus...
Dec 10, 4:19 pm 2006
Marco Costalba
Re: [RFC \ WISH] Add -o option to git-rev-list
Ok. Perhaps I'm doing something wrong but the following code it's always 10% slower then the temporary file one (4.7s against 4.3s for linux tree) bool DataLoader::start(const QStringList& args, const QString& workDir) { QDir::setCurrent(workDir); _file = popen(args.join(" ").ascii(), "r"); if (!_file) return false; loadTime.start(); guiUpdateTimer.start(10, true); // will call on_timeout() in 10ms return true; } void DataLoader::on_timeout() { if (canceling) ...
Dec 10, 6:05 pm 2006
Linus Torvalds
Re: [RFC \ WISH] Add -o option to git-rev-list
Why do you seem to be doing a "new" on every iteration inside the loop? Also, why do you have that strange FILE_BLOCK_SIZE thing, and in particular the "if (len < FILE_BLOCK_SIZE)" check? One thing that pipes vs files do is the blocking factor. Especially with older kernels, I _guarantee_ you that you'll only ever get 4kB at a time, so because of that "if (len < 64kB) break" thing, the only thing you're doing is to make sure things suck performance-wise, and you won't be reading ...
Dec 10, 6:16 pm 2006
Marco Costalba
Re: [RFC \ WISH] Add -o option to git-rev-list
Becuase it's there where I store the file content. Function parseSingleBuffer(ba) does only the indexing. But the file content is stored in QByteArray objects (little wrappers around a const char* []). So the fread() in the byte array object is the _only_ I consistently have len == 65536 bytes until the last fread() where it's less. See below run against qgit own repository with 'len' printed inside while loop. $ ./qgit Found GNU source-highlight 2.5 len is <65536> len is <65536&g...
Dec 10, 6:35 pm 2006
Linus Torvalds
Re: [RFC \ WISH] Add -o option to git-rev-list
That's because fread() will block until it gets all data. Did you actually ever try this with a uncached tree and did you compare what you got with a plain "read()". On older kernels, I guarantee that you get 4kB at a time for reads, even for a blocking pipe. Because we have bigger pipe buffers these days, it _may_ return 64kB at a time every time, but only if the writer is much faster than the reader. Based on the fact that you say that "read()" was ten times slower than fread(), I...
Dec 10, 6:53 pm 2006
Marco Costalba
Re: [RFC \ WISH] Add -o option to git-rev-list
Yes it's right. Thanks! But it's still slow. Almost one second (985ms) to read the little qgit repo: $ ./qgit HEAD Found GNU source-highlight 2.5 count is <-1> count is <60169> count is <-1> count is <60505> count is <-1> count is <61462> count is <-1> count is <61911> count is <-1> count is <61392> count is <-1> count is <61880> count is <-1> count is <62009> count is <-1> count is <62549&g...
Dec 10, 8:15 pm 2006
Linus Torvalds
Re: [RFC \ WISH] Add -o option to git-rev-list
Right. Because every time you sleep, you sleep for 100 ms. That's why I was saying that you need to add polling to the thing. I don't know what the QT interfaces to asynchronous polling file descriptors are, but as long as you just blindly wait for 100ms whenever you run out of data, things will always suck. Using "fread()" hid this problem, because the thing would block in How about you just compare something simpler: git-rev-list | cat > /dev/null vs git-rev-list > ...
Dec 10, 8:51 pm 2006
Marco Costalba
Re: [RFC \ WISH] Add -o option to git-rev-list
Of course is if (canceling) { deleteLater(); return; } Sorry, cut & paste typo ;-) -
Dec 10, 6:09 pm 2006
Michael S. Tsirkin
globs in partial checkout?
I'm trying to checkout some files after doing "clone -n". Should using globs there work? It doesn't: st@mst-lt:~/scm/wireless-dev$ git checkout master 'include/net/ieee80211*.h' error: pathspec 'include/net/ieee80211*.h' did not match any file(s) known to git. Did you forget to 'git add'? mst@mst-lt:~/scm/wireless-dev$ git ls-tree master -- include/net/ | grep iee 100644 blob b174ebb277a96668f058e469b0753503c34f164b include/net/ieee80211.h 100644 blob eb476414fd726701d032e9e517751b9d3f7e38df inclu...
Dec 10, 4:00 pm 2006
Linus Torvalds
Re: globs in partial checkout?
Not historically at all. "git checkout" needed exact filenames in older versions. However, since about 1.4.4.1 or so, it now does the same filename expansion as "git add" etc does, which means that you can give it a directory name and it will check out everything under that directory, or you can give it a pattern, and it should glob it. But it sounds like you may have a slightly older version of git (the pathname matching really is fairly recent). Linus -
Dec 10, 4:13 pm 2006
Michael S. Tsirkin
Re: globs in partial checkout?
Seems like this was post-1.4.4.1. Just updated to 1.4.4.2 and this works for me now, thanks. -- MST -
Dec 10, 5:07 pm 2006
Alex Riesen
Re: [RFC \ WISH] Add -o option to git-rev-list
Well, it is usually possible to redirect stdout directly into a file (see dup2). "Usually", unless you want windows which as always has it's own stupid way of doing simple things. Nevertheless, it's Sadly, you're right. Almost every command-line program got the option. It still is the fastest you can get. -
Dec 10, 10:54 am 2006
Jakub Narebski
Re: Collection of stgit issues and wishes
And as far as I can see it doe not use git credentials (user.name and And yet another one: better support for reflog, namely giving the "reason" i.e. the reflog message (like "stg push: <subject>", "stg refresh: <subject>", "stg pop: <subject>", "stg commit" etc.), like git-rebase, git-commit --amend and git-am (for example) does. P.S. The Vendor: field in stgit RPM has incorrectly Catalin Marinas <catalin.marinas@gmail.org> instead of Catalin Marinas <catalin....
Dec 10, 7:06 am 2006
Jakub Narebski
Re: Collection of stgit issues and wishes
And another one: git uses VISUAL, then EDITOR, while stgit uses EDITOR only, so when I prepare VISUAL for git (I use emacsclient), stgit still uses EDITOR. -- Jakub Narebski Warsaw, Poland ShadeHawk on #git -
Dec 10, 4:55 am 2006
Johannes Schindelin
Re: [PATCH 1/3] diff_tree_sha1(): avoid rereading trees if p...
Hi, Okay, after thinking about it, I agree. merge-recursive is really the only user for such a diff. So, I do not think EMPTY_TREE would be useful. Ciao, Dscho -
Dec 10, 6:49 pm 2006
previous daytodaynext day
December 9, 2006December 10, 2006December 11, 2006