login
Header Space

 
 

git mailing list

FromSubjectsort iconDate
Heikki Orsila
[PATCH] Document functions xmemdupz(), xread() and xwrite()
Signed-off-by: Heikki Orsila <heikki.orsila@iki.fi> --- git-compat-util.h | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/git-compat-util.h b/git-compat-util.h index a18235e..7498bee 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -268,6 +268,12 @@ static inline void *xmalloc(size_t size) return ret; } +/* + * xmemdupz() allocates (len + 1) bytes of memory, duplicates "len" bytes of + * "data" to the allocated memory, zero terminate...
Apr 24, 7:58 pm 2008
Geert Bosch
Excruciatingly slow git-svn imports
I'm trying to import a 9.7G, 130K revision svn repository but it seems to only import about 6K revisions per day on fast hardware using a recent git (1.5.5). This means about 20 days, or more if things slow down as the repo gets bigger Are there any tips/tricks on how to most efficiently convert large repos? I'm using ssh+svn protocol for accessing the repository, but slowness seems due to local inefficiency. An strace -fcp <pid> during a minute gives the following results: % time...
Apr 24, 2:54 pm 2008
Steven Grimm
Re: Excruciatingly slow git-svn imports
I've found that git-svn gets slower as it runs. Try interrupting the clone and running "git svn fetch" -- it should pick up where it left off and will be MUCH faster if my experience is any indication. When I clone the big svn repository at work I usually restart it every 1000 revisions or so and it finishes in a fraction of the time it takes if I let it do everything in a single run. -Steve --
Apr 24, 3:57 pm 2008
Matthieu Moy
[BUG] git svn accepts to clone an empty SVN repo, but then f...
Hi, All is in the title ;-). The command git svn clone (URL of an empty SVN repo here) works, creates an empty git repository. I can perform the initial commit there, but then, "git svn dcommit" says : Use of uninitialized value in concatenation (.) or string at /home/moy/local/usr/bin/git-svn line 414. Committing to ... Unable to determine upstream SVN information from HEAD history I guess a correct management of the initial commit in git-svn would be hard to implement, but at leas...
Apr 24, 2:06 pm 2008
Tom ten Thij
[PATCH/RFC] More colors for pretty format: yellow, purple, c...
Signed-off-by: Tom ten Thij <git@tomtenthij.nl> --- Add support for other colors in pretty format the same way %Cred works. I reordered the if statements to start with the reset case and order the others by ansi color code. Not sure if I have to edit other files or how to do testing for a complete patch. Documentation/pretty-formats.txt | 5 +++++ pretty.c | 21 ++++++++++++++++++--- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/Documentatio...
Apr 24, 1:26 pm 2008
rjtaylor
Different Versions
Hi, First post, hope this is going to the right place. I’m in a fairly restricted situation were I have a Live Web Server and a Dev Web Server. Now the Live box is running Ubuntu 7.04, and installs git version 1.4.* through apt-get. On the Dev box I’ve got Ubuntu 7.10, and this installs git version 1.5.*. Each seem to use slightly different commands, e.g. to initialise a repository. My question is am I ok to use git versions 1.4.* and 1.5.* together, or am I going to have problems? Should I...
Apr 24, 9:18 am 2008
Alex Riesen
Re: Different Versions
get the git source, checkout the 1.4.x version you have on your Live Web Server, compile and install it in your $HOME on developnment machine and try things out before doing them on production system. But it is actually quite simple to uninstall the old git on both systems, compile the newest git, and just install it everywhere. --
Apr 24, 3:50 pm 2008
Matt Graham
Re: Different Versions
I've always had trouble when dev servers and live servers have differences. Apart from how well 1.4 and 1.5 might work with eachother, I'd recommend building from latest stable (1.5.5.1) on both machines anyway. I build on 7.10 and the 2-line default instructions at the top of git/INSTALL work pretty well. I get an error if I try to build the info, so just leave out the info and install-info, and it should be ok. --
Apr 24, 10:57 am 2008
David Kågedal
Re: [ANN] Pyrite prerelease
For an announcement of a new project, I must say that it is *very* short on details on what Pyrite acutally is and what it does. I now know where to find it and some things about the project status, but I have no idea why I should be interested. I even followed the link above, but I still have no idea, although now I know that it has -- David Kågedal --
Apr 24, 5:05 am 2008
Govind Salinas
[ANN] Pyrite prerelease
The official posting can be seen at http://pyrite.sophiasuchtig.com/2008/04/announce-001prealpha.html Hey Everyone, I am proud to announce the first pre-release of Pyrite 0.01prealpha. You can pull from git://gitorious.org/pyrite/mainline.git or http://git.gitorious.org/pyrite/mainline.git ( I think I will use gitorious for hosting since tuxfamily doesn't have an http clones, although I will sort-of miss the RSS feed). Why such a timid name? This is because it has taken me longer than I wante...
Apr 24, 2:42 am 2008
Govind Salinas
Re: [ANN] Pyrite prerelease
On Thu, Apr 24, 2008 at 1:42 AM, Govind Salinas I got several responses about how the announcement was short on details. You guys are absolutely right, I blame the benedryl and the late hour. Anyways... Pyrite, in its current form, is a git porcelain. Its focus is to reduce the learning curve, increase portability and, basically, make it as easy to use as possible. I say "in its current form" because this is simply the first stage of Pyrite's development. When Pyrite is complete I expect t...
Apr 24, 12:10 pm 2008
Sverre Hvammen Johansen
[PATCH 5/5] Introduce fast forward option only
This feature is needed for git integration with accurev. See the documentation for an explanation of this feature. Signed-off-by: Sverre Hvammen Johansen <hvammen@gmail.com> --- Documentation/fast-forward-options.txt | 9 ++ git-merge.sh | 12 +- git-pull.sh | 2 +- t/t7601-merge-ff-options.sh | 214 ++++++++++++++++++++++++++++++++ 4 files changed, 231 insertions(+), 6 deletions(-) diff --git a/Documentation/fast-f...
Apr 24, 1:53 am 2008
Sverre Hvammen Johansen
[PATCH 4/5] Head reduction before selecting merge strategy
See the documentation for an explanation of this feature. Signed-off-by: Sverre Hvammen Johansen <hvammen@gmail.com> --- Documentation/git-merge.txt | 43 ++++++++++++++++++++++++++++++++++++- git-merge.sh | 50 ++++++++++++++++++++++++------------------- 2 files changed, 70 insertions(+), 23 deletions(-) diff --git a/Documentation/git-merge.txt b/Documentation/git-merge.txt index 2af33d8..f6bc96f 100644 --- a/Documentation/git-merge.txt +++ b/Documentation/git-merge.t...
Apr 24, 1:52 am 2008
Sverre Hvammen Johansen
[PATCH 3/5] Restructure git-merge.sh
Restructure git-merge.sh for preparation of new feature: Head reduction before selecting merge strategy Some aspects of this patch does not make much sense without the next patch in this series. Signed-off-by: Sverre Hvammen Johansen <hvammen@gmail.com> --- git-merge.sh | 186 +++++++++++++++++++++++++++++++++------------------------- 1 files changed, 105 insertions(+), 81 deletions(-) diff --git a/git-merge.sh b/git-merge.sh index 17f40f2..7c34b6c 100755 --- a/git-merge.sh ...
Apr 24, 1:49 am 2008
Sverre Hvammen Johansen
[PATCH 2/5] Introduce -ff=<fast forward option>
--ff now takes an argument allowing --ff to be written as --ff=allow and -no-ff to be written as --ff=never. This change allow other fast forward options to be introduced later. See the documentation for a further explanation of these options. Signed-off-by: Sverre Hvammen Johansen &lt;hvammen@gmail.com&gt; --- Documentation/fast-forward-options.txt | 44 ++++++++ Documentation/git-merge.txt | 6 +- Documentation/git-pull.txt | 2 + Documentation/merge-options.t...
Apr 24, 1:46 am 2008
Sverre Hvammen Johansen
[PATCH 1/5] New merge tests
Introduce new merge tests for preparation of new features: --ff=&lt;fast forward option&gt; Head reduction --ff=only Signed-off-by: Sverre Hvammen Johansen &lt;hvammen@gmail.com&gt; --- t/t7601-merge-ff-options.sh | 461 +++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 461 insertions(+), 0 deletions(-) create mode 100755 t/t7601-merge-ff-options.sh diff --git a/t/t7601-merge-ff-options.sh b/t/t7601-merge-ff-options.sh new file mode 100755 index 0000000..408122e --- /de...
Apr 24, 1:43 am 2008
Bart Trojanowski
[PATCH] make git-status use a pager
make git status act similar to git log and git diff by presenting long output in a pager. Signed-off-by: Bart Trojanowski &lt;bart@jukie.net&gt; --- git.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/git.c b/git.c index c4e4644..89b431f 100644 --- a/git.c +++ b/git.c @@ -347,7 +347,7 @@ static void handle_internal_command(int argc, const char **argv) { "shortlog", cmd_shortlog, USE_PAGER }, { "show-branch", cmd_show_branch, RUN_SETUP }, { "show", cmd_sh...
Apr 23, 8:57 pm 2008
Johannes Schindelin
Re: [PATCH] make git-status use a pager
Hi, Heh. The first thing I do on new machines is to compile and install Git. The second is "git config --global alias.ps '-p status'" :-) So I obviously like your patch. Ciao, Dscho --
Apr 24, 4:21 am 2008
Matt Graham
Re: [PATCH] make git-status use a pager
On Thu, Apr 24, 2008 at 4:21 AM, Johannes Schindelin Yes. This also helps those of use who didn't know you could alias status to always page and were constantly typing git status |less. Thanks! --
Apr 24, 9:12 am 2008
Russ Dill
Re: Cleaning the .git directory with gc
Thats a lot of work without first reading the man page: --prune Usually git-gc packs refs, expires old reflog entries, packs loose objects, and removes old rerere records. Removal of unreferenced loose objects is an unsafe operation while other git operations are in progress, so it is not done by default. Pass this option if you want it, and only when you know nobody else is creating new objects in the repository at the same...
Apr 23, 8:09 pm 2008
Shawn O. Pearce
Re: Cleaning the .git directory with gc
But even with `git gc --prune` the old commit object will still be in your repository. Why? Both HEAD and your branch's reflog have a reference to the old commit. And those will remain in there for 90 days by default, so that you could always go back and get that if you _really_ had to recover it. Take a look with `git reflog show HEAD` or `git log -g` and you'll see what I mean. A commit is peanuts when it comes to disk space. Don't worry about it. After a lot of amends and such you will...
Apr 23, 8:50 pm 2008
Haakon Riiser
Re: Cleaning the .git directory with gc
Thanks for answering my question so quickly. I really wasn't that worried about it, but seemed strange that the --amend option only seemed to affect the logs. Anyway, it's nice to know I can start with a clean slate if I want to by cloning from a file:// path. -- Haakon --
Apr 24, 5:14 pm 2008
David Tweed
Re: Cleaning the .git directory with gc
[snip] There's a relatively recent change in this area. Git keeps stuff that's apparently unattached for a period of, by default, 2 weeks (determined by gc.pruneexpire variable) after which a git gc will remove it. The reasoning is that even with the careful design of the git updating strategy there are rare times when with a concurrent other git process there are files in the repo that look unattached but will become attached as the other process completes. Files kept this way aren't propagated b...
Apr 23, 8:32 pm 2008
Shawn O. Pearce
Re: Cleaning the .git directory with gc
Although that's certainly true, the original poster was asking about `git commit --amend`. In such a case the reflog for HEAD and the current branch are going to anchor the old commit for the reflog expire period, which is 90 days. Way longer than the 2 week aging of loose objects. -- Shawn. --
Apr 23, 8:57 pm 2008
Paolo Bonzini
Re: [RFC] Moving "git remote add --mirror blah" functionalit...
Well, the thread is not very explicative. Neither is the commit log message. There is no info as to *why* it is useful. After finding no particularly good info in the commit, and seeing that the functionality is unused within git's shell script porcelain, I wrote my RFC on the intuition that it is a failed experiment. (The rest of Hm, bad sentence on my side. My point was that my proposed improvements to clone: git clone --bare -o origin &lt;url&gt; foo.git satisfy 99% of the u...
Apr 24, 2:23 am 2008
Christian Couder Apr 24, 2:01 am 2008
Shawn O. Pearce
Re: How to fetch missing pack
If you know the name of the objects you are missing, you can make a temporary pack to transfer the list of objects: # at good repo # git pack-objects --stdout &lt;object.list &gt;save.pack # at bad repo # git index-pack --stdin &lt;save.pack Make object.list just one SHA-1 per line. The resulting pack is not likely to be highly compressed, as it will probably contain a non-delta version of each object, but its faster to create than calling git-cat-file for each object, and may give...
Apr 24, 2:08 am 2008
Jeff King
Re: [PATCH 1/3 v2] Add --blob-filter option to filter-branch.
Keep in mind that $path can have slashes. So you actually need to: mkdir -p `dirname $sha1/$path` echo $new &gt;$sha1/$path -Peff --
Apr 23, 9:33 pm 2008
Terje Sten Bjerkseth
Re: Problems importing from Apache SVN
Works for me using git svn clone. git svn init fails for me, too. $ git --version git version 1.5.5.1.57.g5909c $ git svn clone http://svn.apache.org/repos/asf/incubator/couchdb Initialized empty Git repository in .git/ W: Ignoring error from SVN, path probably does not exist: (175007): HTTP Path Not Found: REPORT request failed on '/repos/asf/!svn/bc/100/incubator/couchdb': '/repos/asf/!svn/bc/100/incubator/couchdb' path not found W: Do not be alarmed at the above message git-svn is just searc...
Apr 24, 2:16 am 2008
Jeff King
Re: git-gc doesn't clean up leftover objects after git-filte...
OK, maybe I am wrong. Within a few hours of me posting this, somebody starts a new thread with a toy example wondering why git-gc didn't clean up an --amended commit. I don't know the best way to teach people about this (short of using a big stick, of course), but maybe something like this would help a little: -- &gt;8 -- doc/git-gc: add a note about what is collected It seems to be a FAQ that people try running git-gc, and then get puzzled about why the size of their .git directory didn't...
Apr 23, 9:28 pm 2008
Avery Pennarun
Re: git-gc doesn't clean up leftover objects after git-filte...
This information would have helped me quite a bit when I first encountered this problem. It would be nice if it also showed up under git-prune (since git-gc doesn't delete anything itself, if I understand correctly). Also a link to some information about reflogs (even just to "see also" git-reflog) would help, since I didn't hear about reflogs at all until after I joined the mailing list. Avery --
Apr 24, 11:43 am 2008
Jeff King
Re: git-gc doesn't clean up leftover objects after git-filte...
Hmm, maybe it would make sense to put that note in git-prune, with a $ grep -A6 See.Also Documentation/git-gc.txt See Also -------- linkgit:git-prune[1] linkgit:git-reflog[1] linkgit:git-repack[1] linkgit:git-rerere[1] But if the note were moved to git-prune, it would be natural to mention git-reflog there. What do you think? -Peff --
Apr 24, 12:14 pm 2008
Avery Pennarun
Re: git-gc doesn't clean up leftover objects after git-filte...
I gather there's a movement in recent git versions (sorry, I only tuned in recently) to encourage people to use git-gc instead of git-prune in almost all cases. The reasons I ever looked at git-prune at all was that git-gc mentioned it in "See Also", and because "git-prune" sounded more obviously like what I wanted than "git-gc" when I looked at "man git". Adding git-gc *and* git-reflog as See Also entries in git-prune would make sense to me. Avery --
Apr 24, 12:59 pm 2008
Shawn O. Pearce
[PATCH] bash completion only provides revs, not paths
Damn. I'm sorry. My mailer seems to be dropping it when I quote you, and I copied your name from the "... wrote:" line at the top of my message. I should have copied from the To: header, where it hasn't been munged. Fixed commit message below. --8&lt;-- bash completion: Completely only path names after -- in options If the user has inserted a -- before the current argument we are being asked to complete they are most likely trying to force Git into treating this argument as a path name, ...
Apr 23, 9:21 pm 2008
Uwe
Re: [PATCH] bash completion only provides revs, not paths
Hello, Fine. BTW, even with your patch the problem still exists for git-diff. I havn't yet looked into it. Uwe -- Uwe Kleine-König, Software Engineer Digi International GmbH Branch Breisach, Küferstrasse 8, 79206 Breisach, Germany Tax: 315/5781/0242 / VAT: DE153662976 / Reg. Amtsgericht Dortmund HRB 13962 --
Apr 24, 1:52 am 2008
Santi Béjar
Re: showing conflicting merges
On Wed, Apr 23, 2008 at 8:17 AM, Uwe Kleine-König The version in the working copy should be 7ebecc4, so there is no need FWIU --merge is an option for git-rev-list (and alike, git log, gitk...). I don't know its meaning in this case. It shoud be juts: $git diff that currently says in this case: $ git diff * Unmerged path file1 In this case: echo a &gt;file1 &amp;&amp; git add file1 &amp;&amp; git commit -m initial &amp;&amp; git checkout -b a1 master &amp;&amp; git rm file1 ...
Apr 24, 8:51 am 2008
Santi Béjar
Re: showing conflicting merges
Actually only: git diff git diff -2 git diff -3 for: $ git diff -1 * Unmerged path file1 diff --git a/file1 b/file1 index 7898192..c9c6af7 100644 --- a/file1 +++ b/file1 @@ -1 +1 @@ -a +b1 but "-2" and "-3" do the same for different reasons -2) theres is no "2" in the index -3) is equal to the wc file1 so both output the same: * Unmerged path file1 and I still think "git diff" has to output something else than --
Apr 24, 9:08 am 2008
Sverre Hvammen Johansen
Re: [PATCH 0/5] Fast forward strategies allow, never, and only
I resending these patches for you to coment. The patch series consists of the following five patches: 0001-New-merge-tests.patch 0002-Introduce-ff-fast-forward-option.patch 0003-Restructure-git-merge.sh.patch 0004-Head-reduction-before-selecting-merge-strategy.patch 0005-Introduce-fast-forward-option-only.patch The first patch add some tests. The second, fourth, and fifth adds new features and they are all trivial. I was able to make the fourth patch trivial as well by actually ...
Apr 24, 1:39 am 2008
Johannes Sixt
Re: Git on Windows, CRLF issues
Yes, of course! So I stand corrected, and Jeff's patch makes sense. For consistency's sake, the path should be made available in, say, GIT_BLOB_PATH just like the commit is available in GIT_COMMIT. -- Hannes --
Apr 24, 2:25 am 2008
Jeff King
Re: Git on Windows, CRLF issues
Yes, that was my original reasoning. But I think the problem then is that the blob filter isn't terribly useful. IOW, it is not really a separate filter, but rather an optimizing pattern for an index filter, so maybe calling it a blob filter is the wrong approach, and it would be better as a short perl script in contrib/filter-branch. Then you could call: git filter-branch --index-filter ' /path/to/git/contrib/filter-branch/dos2unix \ "*.txt" "*.c" ' -Peff --
Apr 23, 9:37 pm 2008
Johannes Schindelin
Re: Git on Windows, CRLF issues
Hi, I start to wonder if "git fast-export --all | my-intelligent-perl-script | git fast-import" would not be a better solution here. All you would have to do is to detect when a blob begins, and how long it is, and work with that. If your trees do not contain any binary files, it should be trivial. Ciao, Dscho --
Apr 24, 4:11 am 2008
Avery Pennarun
Re: Git on Windows, CRLF issues
Err, yes... as long as there are no binary files. I'm not so lucky, and life is a little more complex in that case. It also gives no easy way of selectively applying the blob filter based on filename, which is pretty important when you do have some binary files and you're trying to decide whether to run dos2unix. (In contrast, the *other* objection, which is that the same blob might have multiple filenames, doesn't bother me at all, since I'm sure I don't have any .txt files that were accidenta...
Apr 24, 12:56 pm 2008
Shawn O. Pearce
Re: git-gui hangs on read
Here's another work around that doesn't require editing the code. Just turn the d**n spell checker off: git config --global gui.spellingdictionary none That will keep us from evening trying to launch aspell, and since its global (in your ~/.gitconfig) it should default into every repository you have, or create. Apparently aspell 0.50 does not like git-gui. I'll have to look at the version header and abort trying to use aspell if it is pre 0.60. git-gui 0.10.2 here we come. -- Shawn....
Apr 23, 9:00 pm 2008
Gustaf Hendeby
Re: git-gui hangs on read
Thanks, even better! Though, I can't seem to find this option (and other ones indicated by the source) documented anywhere. Where would be the place to put such information? For git options the place seems to be the git config help, but given that the git gui is maintained independently the choice is less obvious to me. /Gustaf --
Apr 24, 2:54 am 2008
previous daytodaynext day
April 23, 2008April 24, 2008April 25, 2008
speck-geostationary