git mailing list

FromSubjectsort iconDate
Junio C Hamano
Re: [PATCH] Add [HOWTO] using merge subtree.
I think the presentation order is still screwy. Before saying what it does, let's state why the reader might want to use what we are going to describe, so that the reader can say "I am not in that situation, I do not have to read the rest" and skip the document quickly. When you want to include contents in your project from another project that has started its life independently, you can do so by merging the other project into your project. If there is no (and more importantly...
Jan 9, 6:33 pm 2008
Marco Costalba
Decompression speed: zip vs lzo
I have created a big tar from linux tree: linux-2.6.tar 300,0 MB Then I have created to compressed files with zip and lzop utility (the latter uses the lzo compression algorithm): linux-2.6.zip 70,1 MB linux-2.6.tar.lzo 108,0 MB Then I have tested the decompression speed: $ time unzip -p linux-2.6.zip > /dev/null 3.95user 0.09system 0:04.05elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (0major+189minor)pagefaults 0swaps $ time lzop -d -c linux-2.6.tar.lzo &g...
Jan 9, 6:01 pm 2008
Junio C Hamano
Re: Decompression speed: zip vs lzo
Note that the space nor time performance of compressing and uncompressing a single huge blob is not as interesting in the context of git as compressing/uncompressing millions of small pieces whose total size is comparable to the specimen of "huge single blob" experiment. Obviously loose object files are compressed individually, and packfile contents are also individually and independently compressed. Set-up cost for individual invocation of compression and uncompression on smaller data matters a...
Jan 9, 6:55 pm 2008
Sam Vilain
Re: Decompression speed: zip vs lzo
Yes - and lzo will almost certainly win on all those counts! I think to go forward this would need a prototype and benchmark figures for things like "annotate" and "fsck --full" - but bear in mind it would be a long road to follow-up to completion, as repository compatibility would need to be a primary concern and this essentially would create a new pack type AND a new *object* type. Not only that, but currently there is no header in the objects on disk which can be used to detect a gzip vs. an ...
Jan 9, 7:23 pm 2008
Junio C Hamano
Re: Decompression speed: zip vs lzo
For the compression type detection, I was hoping that we could do something like sha1_file.c::legacy_loose_object(), but I tend to agree it is not probably worth it. -
Jan 9, 7:49 pm 2008
Johannes Schindelin
Re: Decompression speed: zip vs lzo
Hi, No new object type. Why should it? But it has to have a config variable which says what type of packs/loose objects it has (and you will not be I agree that gzip is already fast enough. However, pack v4 had more goodies than just being faster; it also promised to have smaller packs. And pack v4 would need to have the same infrastructure of repacking if the client does not understand v4 packs. Ciao, Dscho -
Jan 9, 7:31 pm 2008
Christian Stimming
[PATCH] gitk: Update German translation.
Now 100% complete (163 strings). Signed-off-by: Christian Stimming <stimming@tuhh.de> =2D-- Additionally attached in gzip'd form to avoid encoding=20 or whitespace problems. po/de.po | 418 +++++++++++++++++++++++++++++++++-------------------------= =2D--- 1 files changed, 220 insertions(+), 198 deletions(-) diff --git a/po/de.po b/po/de.po index d7881dd..5ee2fca 100644 =2D-- a/po/de.po +++ b/po/de.po @@ -7,8 +7,8 @@ msgid "" msgstr "" "Project-Id-Version: git-gui\n" "Report-...
Jan 9, 5:24 pm 2008
Christian Stimming
[PATCH] gitk: Fix typo in user message.
Signed-off-by: Christian Stimming <stimming@tuhh.de> --- gitk | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gitk b/gitk index 801a5a9..b3cb8e8 100755 --- a/gitk +++ b/gitk @@ -2629,12 +2629,12 @@ proc askrelhighlight {row id} { if {![info exists selectedline]} return set isbold 0 - if {$highlight_related eq [mc "Descendent"] || - $highlight_related eq [mc "Not descendent"]} { + if {$highlight_related eq [mc "Descendant"] || + $highligh...
Jan 9, 5:23 pm 2008
Junio C Hamano
Re: [PATCH] - Added recurse command to git submodule
Thanks for raising a very good point. Yes, some commands inherently wants depth first. While I agree that making a recursive is a grave usage error (submodule commit and toplevel commit are logically different events and even their commit log message should be different, as they talk about changes in logically different levels) from project management point of view, I do not think it is something a tool has to explicitly forbid the users to do. I view it as a kind of a long rope, a misuse th...
Jan 9, 4:26 pm 2008
Junio C Hamano
Re: CRLF problems with Git on Win32
That sounds like a perfect place for a per-platform tweak like this than in the code, but I wonder if peoples' scripts have valid use case of GIT_CONFIG to bypass it (git-svn's use of the Won't that behaviour be viewed rather as "insanely" from I have been hoping a better (simpler to use, and somewhat more importantly harder to misuse by being not overly flexible) way than that "clone -c" solution, but that is an implementation issue (I think the tweak rather belongs to init than clone anyway,...
Jan 9, 4:25 pm 2008
Johannes Schindelin
Re: CRLF problems with Git on Win32
Hi, I think the truth is that CRLF was a mistake. Nobody wants to take the blame for it, obviously, but more and more Windows tools just grok LF-only text. The question is: what to do with those that cannot grok LF-only text. I imagine that the best compromise for now would be to have crlf=true, with poor souls like Steffen having to set the gitattributes accordingly. Ciao, Dscho -
Jan 9, 4:50 pm 2008
Steffen Prohaska
Re: CRLF problems with Git on Win32
I could live with that but unfortunately this alone does not solve all of the real-world problems happening during cross- platform development. At least the problem of code copied from Windows to Unix and committed there should be addressed, too. Maybe the default on Unix should be crlf=input? I'm wondering what Linux developer would say about this? I am against changing the default of msysgit now. First I'd like to wait how the "crlf=safe" discussion evolves. Steffen -
Jan 9, 5:03 pm 2008
Junio C Hamano
Re: [PATCH] Change git-gc documentation to reflect gc.packre...
Thanks. I rephrased the above (three almost identical lines) to: 56752391a8c0c591853b276e4fa0b45c34ced181 (Make "git gc" pack all refs by default) changed the default of gc.packrefs to true, to pack all refs by default in any repository. IOW, the users need to disable it explicitly if they want to by setting the config variable, since 1.5.3. However, we forgot to update the documentation. This fixes it. and applied. -
Jan 9, 4:25 pm 2008
Florian La Roche
[PATCH] Change git-gc documentation to reflect gc.packrefs i...
Adjust git-gc documentation to reflect gc.packrefs implementation. Adjust git-gc documentation to reflect gc.packrefs implementation. Signed-off-by: Florian La Roche <laroche@redhat.com> --- Documentation/git-gc.txt | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/git-gc.txt b/Documentation/git-gc.txt index c4354bb..4b2dfef 100644 --- a/Documentation/git-gc.txt +++ b/Documentation/git-gc.txt @@ -90,9 +90,9 @@ how long records of conflicted mer...
Jan 9, 12:05 pm 2008
Daniel Barkalow
[RFC] refer to post-patch lines in whitespace warnings
When I rebase series with bad whitespace, I end up with unhelpful messages like: .dotest/patch:412: trailing whitespace. -- .dotest/patch:446: trailing whitespace. -- These line numbers obviously refer to lines in a file that's been removed by the time I can do anything about it. It seems to me like the message would be more useful if, in the case where it leaves the working tree modified with the non-compliant whitespace, it gave this location rather than the patch's location (because,...
Jan 9, 11:57 am 2008
Junio C Hamano
Re: [RFC] refer to post-patch lines in whitespace warnings
I realize that I did not answer your primary question in the previous response. I think it is fine if you are thinking about _adding_ line number of postimage (or preimage for that matter) to the warning output, but I do not think we would want to remove the in-patch line numbers we currently have and replace them with something else. I often very much appreciate the fact that these messages precisely identify the problematic spots in the patch so that I can go in and fix them in place before a...
Jan 9, 4:42 pm 2008
Junio C Hamano
Re: [RFC] refer to post-patch lines in whitespace warnings
The message is more appropriate for a workflow to "git apply --check" In such a case, "git diff" will highlight the non-compliant whitespace. More problematic is if you used whitespace=warn to let it commit anyway. You can use "git diff $beginning_of_series..HEAD" the same way to locate the breakages, but you then need to do "rebase -i" to fix it up (I personally would run "format-patch", fix the problems in the patch text, and run "am", instead of "rebase -i", mostly because I am used to worki...
Jan 9, 4:22 pm 2008
Daniel Barkalow
Re: [RFC] refer to post-patch lines in whitespace warnings
Right; I'd keep it the same for all cases in which the patch is not applied: "git apply --check" (which doesn't apply it regardless) or when whitespace errors prevent application; so the message would be, in either case, appropriate to the workflow. In fact, in your workflow, it wouldn't make any sense to give the resulting location of the whitespace, because that version of the file hasn't been created. I think that only one of the possible location reports is actually helpful: if it wasn'...
Jan 9, 5:35 pm 2008
Charles Bailey
[PATCH] gitk: Fix the Makefile to cope with systems lacking ...
The po2msg.sh script and the .gitignore in the po directory have been shamelessly copied from the current git-gui. This enables the top level "make NO_MSGFMT" to work consistently for git across the git-gui and gitk sub-projects. This is the same effective patch that has previously been posted as a git.git patch which more succinctly described the copying of po/.gitignore and po/po2msg.sh from git-gui. Signed-off-by: Charles Bailey <charles@hashpling.org> --- Makefile | 7 +++- ...
Jan 9, 10:31 am 2008
Charles Bailey
[PATCH] Fix the MacOS X compile of gitk by pinching po2msg.s...
Make the behaviour of a top level make NO_MSGFMT=Yes consistent when performing the subdirectory builds in gitk-git and git-gui. Signed-off-by: Charles Bailey <charles@hashpling.org> --- gitk-git/Makefile | 7 ++++++- {git-gui => gitk-git}/po/.gitignore | 0 {git-gui => gitk-git}/po/po2msg.sh | 0 3 files changed, 6 insertions(+), 1 deletions(-) copy {git-gui => gitk-git}/po/.gitignore (100%) copy {git-gui => gitk-git}/po/po2msg.sh (100%) diff...
Jan 9, 9:29 am 2008
Johannes Schindelin
Re: [PATCH] Fix the MacOS X compile of gitk by pinching po2m...
Hi, Since gitk and git-gui are separate projects (pulled at irregular intervals into git.git), your patch looks sane, but would be better done as a patch against gitk.git. Ciao, Dscho -
Jan 9, 9:40 am 2008
Charles Bailey
Re: [PATCH] Fix the MacOS X compile of gitk by pinching po2m...
I'm sorry, I think I knew this once, but had forgotten. Of course, as a patch against gitk, I think it gets quite verbose as the patch includes a full copy of the po2msg.sh script. Is there a simple way to generate a gitk.git patch from a git.git clone, or do I need to clone a gitk repository from somewhere? Perhaps I could just flag this as a reasonably important MacOS X 1.5.4-rc issue until I can sort out a more suitable patch? Thanks, Charles. -
Jan 9, 9:52 am 2008
Johannes Schindelin
Re: [PATCH] Fix the MacOS X compile of gitk by pinching po2m...
Hi, Oh, my critique was not meant as harsh as it was apparently received: for reviewing purposes, your way was perfect, as it shows your intent better than the technically correct patch. All I'm saying is that you should send the (verbose) patch, too, possibly referring to the smaller patch in the space between the three dashes and the diffstat. (I would also prefix this patch with "gitk:", instead of writing "of gitk", so that people reading the log of git.git get a better idea what ...
Jan 9, 10:06 am 2008
Johannes Schindelin
[PATCH] shortlog: mention the "-e" option in the usage
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> --- builtin-shortlog.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/builtin-shortlog.c b/builtin-shortlog.c index 3d8d709..fa8bc7d 100644 --- a/builtin-shortlog.c +++ b/builtin-shortlog.c @@ -8,7 +8,7 @@ #include "mailmap.h" static const char shortlog_usage[] = -"git-shortlog [-n] [-s] [<commit-id>... ]"; +"git-shortlog [-n] [-s] [-e] [<commit-id>... ]"; static char *commo...
Jan 9, 7:39 am 2008
Junio C Hamano
Re: [PATCH] Simplified the invocation of command action in s...
I view the usage emitted by a command primarily as a quick reminder for people who are _already_ familiar with the command to help "was the option this command takes --foo or --bar? I can never remember which X-<" situation. The usage string is not a replacement of the manual page. For that reason, I generally prefer short and sweet one line usage for the whole command, even if it does not exactly capture mutually incompatible option combinations, _as long as_ the command itself is simple en...
Jan 9, 6:27 am 2008
Junio C Hamano
Re: [PATCH] - Added recurse command to git submodule
The indentation style seems, eh, unique. An overlong single paragraph with solid run of sentences is somewhat hard to read. I am not still convinced that a subcommand other than init, which is started recursively, should initialize and update submodules that are uninitialized. Currently there is no way, other than not having an initialized submodule repository, to mark that the user is _not_ interested in a particular submodule, and you will lose that if you make recursing into uninitialized o...
Jan 9, 4:38 am 2008
Lars Hjemli
Re: [PATCH] - Added recurse command to git submodule
A possible extension is to specifiy "inter-submodule" paths to the init subcommand, i.e. for a possible KDE layout: git submodule -r init kdelibs kdelibs/admin This should then recursively initialize the kdelibs submodule and the admin-submodule (in the kdelibs submodule). Btw: from my reading of the code, the git-command specified for 'recurse' will be done top-to-bottom: I guess that's what you want for something like 'git submodule recurse diff', but not for something like 'git submodul...
Jan 9, 6:42 am 2008
Imran M Yousuf
Re: [PATCH] - Added recurse command to git submodule
Hi Junio, Thanks for the feedback and specially thank you for the coding standard documentation, I was looking for it. I will make fixes to both the patches and email them again. Will send this patch again, probably tomorrow. Thank you, Imran -- Imran M Yousuf Entrepreneur & Software Engineer Smart IT Engineering Dhaka, Bangladesh Email: imran@smartitengineering.com Mobile: +880-1711402557 -
Jan 9, 4:55 am 2008
Junio C Hamano
Re: [PATCH] Simplified the invocation of command action in s...
Doesn't the patch make some if not all of the above variables Does the remaining code still use $add? -
Jan 9, 4:19 am 2008
Imran M Yousuf
Re: [PATCH] Simplified the invocation of command action in s...
Hi Junio, Firstly, $add is still used later in the code. Secondly, yes the variables should be deleted. Will make the change and send the patch again; I forgot to clean the unused variables from the declaration, sorry. Best regards, Imran -- Imran M Yousuf -
Jan 9, 4:23 am 2008
Junio C Hamano
Re: [PATCH] gitk: Update and fix Makefile
There were a couple of things I noticed that made me somewhat curious: * There are more spaces around ?= in Christian's patch to Makefile. * You have two patches from Christian and one patch from Gerrit; the author and commit timestamps of these commits are the same and in your timezone. but nothing to complain about. Pulled and pushed out. -
Jan 9, 4:19 am 2008
Junio C Hamano
Re: CRLF problems with Git on Win32
Perhaps we can do something similar to core.filemode? Create a file that we would need to create anyway in "text" mode, and read it back in "binary" mode to see what stdio did? -
Jan 9, 4:03 am 2008
Johannes Schindelin
Re: CRLF problems with Git on Win32
Hi, IMHO this is really not good. Better do it in the global /etc/gitconfig The problem is that MinGW behaves sanely, i.e. it does not output CRLF but only LF. Besides, as I stated several times already, there _are_ projects on Windows where you do _not_ want crlf=true: - Windows is already slow. So slow that it is not even funny. Granted, if you use Windows daily, git on MinGW seems snappy, but if you come from Linux, it is slow as hell. And CRLF conversion does not help ...
Jan 9, 6:48 am 2008
Kevin Ballard
[PATCH] Trim leading / off of paths in git-svn prop_walk
prop_walk adds a leading / to all subdirectory paths. Unfortunately this causes a problem when the remote repo lives in a subdirectory itself, as the leading / causes subsequent PROPFIND calls to be executed on the wrong path. Trimming the / before calling the PROPFIND fixes this problem. Signed-off-by: Kevin Ballard <kevin@sb.org> --- All tests passed after this change, but since it seems to only apply to WebDAV SVN repos I saw no way to add a new test. git-svn.perl | 1 + 1 files chan...
Jan 9, 2:37 am 2008
Junio C Hamano
Re: [PATCH] Trim leading / off of paths in git-svn prop_walk
Eric, the change is very limited in scope (only the parameter to ra->get_dir() changes) so I can apply myself, if you agree this is a trivially correct fix. I just do not know svn-perl -
Jan 9, 4:54 pm 2008
Eric Wong
Re: [PATCH] Trim leading / off of paths in git-svn prop_walk
Yes it is. It appears this regression was introduced in 01bdab84e31763a98206c31cf99b9dc3cb221356 so yes, it's trivially correct :) -- Eric Wong -
Jan 9, 6:55 pm 2008
imyousuf
[PATCH] - Added recurse command to git submodule
From: Imran M Yousuf <imyousuf@smartitengineering.com> - The purpose of the recurse command in the git submodule is to recurse a command in its submodule at depths specified. For example if one wants to do a diff on its project with submodules at once, one can simply do git-submodule recurse diff HEAD and would see the diff for all the modules it contains. If during recursion it is found that a module has not been initialized or updated than the command also initializes and updates the...
Jan 9, 1:51 am 2008
imyousuf
[PATCH] Simplified the invocation of command action in submo...
From: Imran M Yousuf <imran@smartitengineering.com> - Simplified the invocation of action. - Changed switch case based action invoke rather more direct command invocation. Previously first switch case was used to go through $@ and determine the action, i.e. add, init, update etc, and second switch case just to invoke the action. It is modified to determine the action name in the first case structure instead and later just invoke it. Signed-off-by: Imran M Yousuf <imyousuf@smartitengineer...
Jan 8, 11:59 pm 2008
Johannes Sixt
Re: [PATCH] Simplified the invocation of command action in s...
- Previously 'git submodule' was equvalent to 'git submodule status', now it is an error. - Previously, passing --cached to add, init, or update was an error, now it is not. -- Hannes -
Jan 9, 4:59 am 2008
Imran M Yousuf
Re: [PATCH] Simplified the invocation of command action in s...
Yes, I forgot to add that status is the default command. Thanks for The usage statement and this behaviour is rather contradicting. The usage says that --cached can be used with all commands; so I am not sure whether using --cached with add should be an error or not. IMHO, if the previous implementation was right than the USAGE has to be changed, and if the previous implementation was incorrect, than if the default command is set to status than current implementation is right. Thank you, -...
Jan 9, 5:51 am 2008
Lars Hjemli
Re: [PATCH] Simplified the invocation of command action in s...
--cached only makes sense for the status subcommand, so the usage/manpage probably should have looked like this (except for the whitespace mangling...): diff --git a/Documentation/git-submodule.txt b/Documentation/git-submodule.txt index cffc6d4..331e806 100644 --- a/Documentation/git-submodule.txt +++ b/Documentation/git-submodule.txt @@ -10,7 +10,10 @@ SYNOPSIS -------- [verse] 'git-submodule' [--quiet] [-b branch] add <repository> [<path>] -'git-submodule' [--quiet] [--cache...
Jan 9, 6:24 am 2008
Johannes Sixt
Re: [PATCH] Simplified the invocation of command action in s...
I prefer that the usage statement lists one line per sub-command with the flags that apply only to the sub-command. IOW, a usage statement that suggests that a flag applies to all sub-commands when in reality it doesn't is bogus, IMHO. -- Hannes -
Jan 9, 6:01 am 2008
Imran M Yousuf
Re: [PATCH] Simplified the invocation of command action in s...
I think for this patch I will keep the usage intact and keep the implementation coherent with the current usage and add a comment in -- Imran M Yousuf -
Jan 9, 6:06 am 2008
Imran M Yousuf Jan 9, 5:07 am 2008
Johannes Sixt
Re: [PATCH] Simplified the invocation of command action in s...
-- Hannes of them. "that mistake" with no clue on which one you mean when I pointed out three BTW, on this list we don't top-post. In particular not when you write only [...] -
Jan 9, 5:15 am 2008
Imran M Yousuf
Sending a patch using git-send-email
Hi All, I am using git-send-email --to imyousuf@gmail.com --cc imran.yousuf@smartitengineering.com --from imyousuf@gmail.com ~/Desktop/0001-Signed-off-by-Imran-M-Yousuf-imran-smartitengineer.patch to send a patch, now if I use --subject "test subject" --compose I get 2 emails one with subject "test subject" and body I gave in the composer and another with patch subject and the patch as body. Is there a way to combine them? git-send-email --to imyousuf@gmail.com --subject "Simplified action invoc...
Jan 8, 11:29 pm 2008
Mark Williamson
[ANNOUNCE] Push Me Pull You 0.1 - Preview Release
Hi all, For some time I have been working on a GUI for DVCS systems, which I have named Push Me Pull You (PMPU). At its core is a GUI for viewing Incoming / Outgoing changesets. It also includes support for initiating pulls / pushes, doing clones, etc. Eventually I hope to provide access to much more functionality. My "native" DVCS is Mercurial and I'm rather new to git's way of doing things, although it is similar in many respects. PMPU is intended to support multiple DVCS systems; cu...
Jan 8, 10:28 pm 2008
William Morgan
[PATCH] additional help when editing during interactive rebase
I personally would have found this message useful the first time I used git rebase --interactive. YMMV. Signed-off-by: William Morgan <wmorgan-git@masanjin.net> --- git-rebase--interactive.sh | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/git-rebase--interactive.sh b/git-rebase--interactive.sh index acdcc54..d53d283 100755 --- a/git-rebase--interactive.sh +++ b/git-rebase--interactive.sh @@ -263,6 +263,10 @@ do_next () { warn warn " git commit --amend...
Jan 8, 10:32 pm 2008
Junio C Hamano
Re: [PATCH] additional help when editing during interactive ...
Aside from this message being inappropriate as a proposed commit log message, I think what the patch tries to achieve is a worthy UI improvement. I would have removed those empty lines around the instruction if I were patching this, though. Losing 5 lines out of 25-line terminal was marginally Ok. Losing 9 lines 4 lines too many and is unacceptable. -
Jan 8, 10:55 pm 2008
Johannes Schindelin
Re: [PATCH] additional help when editing during interactive ...
Hi, I wonder if it would not make even more sense to record the current HEAD name, and call "commit --amend" if it is the same upon "--continue". Note that "commit --amend" is _already_ called automatically if the index is dirty (but agrees with the working directory). Then the user would be spared some additional typing, and the help could be changed to hint at "rebase --continue". It also would make things more consistent. Ciao, Dscho -
Jan 9, 7:23 am 2008
previous daytodaynext day
January 8, 2008January 9, 2008January 10, 2008