git mailing list

FromSubjectsort iconDate
Kaushalya Satharasinghe
Unable to connect to the server
Hi, I want to checkout a git package. I installed git and when I give the command "/root/bin/git clone git://git.kernel.org/pub/scm/linux/kernel/git/drzeus/mmc.git /home/Kaushalya/moreWork/git_test " I got the result as Initialized empty Git repository in /home/Kaushalya/moreWork/git_test/.git/ git.kernel.org[0: 140.211.167.38]: errno=Connection timed out fatal: unable to connect a socket (Connection timed out) fetch-pack from 'git://git.kernel.org/pub/scm/linux/kernel/git/drzeus/mmc.git' fa...
Sep 21, 5:10 am 2007
Lars Hjemli
[PATCH 0/5] per branch options for git-merge incl. --no-ff
This patch-series implements support for per branch configuration of git-merge, using entries (branch.<name>.mergeoptions) in .git/config. There is also a new option, --no-ff, which can be used to force git-merge to create merge commits even when the merge was a fast-forward. Finally, the new optiond --ff and --commit can be used to override setting specified in .git/config. Note: patch 1/5 is a resend of the testscript for git-merge, this time with correct mode bits. Shortlog: A...
Sep 21, 8:33 pm 2007
Lars Hjemli
[PATCH 1/5] Add test-script for git-merge porcelain
This test-script tries to excercise the porcelainish aspects of git-merge. Signed-off-by: Lars Hjemli <hjemli@gmail.com> --- t/t7600-merge.sh | 317 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 317 insertions(+), 0 deletions(-) create mode 100755 t/t7600-merge.sh diff --git a/t/t7600-merge.sh b/t/t7600-merge.sh new file mode 100755 index 0000000..9e58636 --- /dev/null +++ b/t/t7600-merge.sh @@ -0,0 +1,317 @@ +#!/bin/sh +# +# Copyright (c) 2007 Lars Hjeml...
Sep 21, 8:33 pm 2007
Lars Hjemli
[PATCH 2/5] git-merge: refactor option parsing
Move the option parsing into a separate function as preparation for reuse by the next commit. Signed-off-by: Lars Hjemli <hjemli@gmail.com> --- git-merge.sh | 20 ++++++++++++++------ 1 files changed, 14 insertions(+), 6 deletions(-) diff --git a/git-merge.sh b/git-merge.sh index 3a01db0..a3ef676 100755 --- a/git-merge.sh +++ b/git-merge.sh @@ -119,11 +119,7 @@ merge_name () { fi } -case "$#" in 0) usage ;; esac - -have_message= -while case "$#" in 0) break ;; esac -do +...
Sep 21, 8:33 pm 2007
Lars Hjemli
[PATCH 3/5] git-merge: add support for branch.<name>.m...
This enables per branch configuration of merge options. Currently, the most useful options to specify per branch are --squash, --summary/--no-summary and possibly --strategy, but all options are supported. Note: Options containing whitespace will _not_ be handled correctly. Luckily, the only option which can include whitespace is --message and it doesn't make much sense to give that option a default value. Signed-off-by: Lars Hjemli <hjemli@gmail.com> --- Documentation/config.txt | ...
Sep 21, 8:33 pm 2007
Lars Hjemli
[PATCH 4/5] git-merge: add support for --commit
This option can be used to override --no-commit and --squash. The change also introduces slightly different behavior for --no-commit: when specified, it explicitly overrides --squash. Signed-off-by: Lars Hjemli <hjemli@gmail.com> --- Documentation/merge-options.txt | 4 ++++ git-merge.sh | 6 ++++-- t/t7600-merge.sh | 16 ++++++++++++++++ 3 files changed, 24 insertions(+), 2 deletions(-) diff --git a/Documentation/merge-options.txt b/Documentatio...
Sep 21, 8:33 pm 2007
Lars Hjemli
[PATCH 5/5] git-merge: add --ff and --no-ff options
These new options can be used to control the policy for fast-forward merges: --ff allows it (this is the default) while --no-ff will create a merge commit. Signed-off-by: Lars Hjemli <hjemli@gmail.com> --- Documentation/merge-options.txt | 9 +++++++++ git-merge.sh | 20 +++++++++++++++----- t/t7600-merge.sh | 18 ++++++++++++++++++ 3 files changed, 42 insertions(+), 5 deletions(-) diff --git a/Documentation/merge-options.txt b/Documentation/merge...
Sep 21, 8:33 pm 2007
David Kastrup
Re: [PATCH] Allow shell scripts to run with non-Bash /bin/sh
Sure, that is a bug. But in my opinion the idiom as such is ugly enough not be worth keeping anyhow. The proposal of the patch submitter was making an already ugly idiom even uglier for the sake of his shell. I agree that this is not the way to go. I was proposing replacing the idiom by something which I find cleaner. That it will most likely work with the original poster's shell is more or less a side effect. At least it is a side effect that might motivate somebody else rather than me to ...
Sep 21, 8:26 pm 2007
David Kastrup
Re: [PATCH] Allow shell scripts to run with non-Bash /bin/sh
Personally, I find this idiom distasteful. I'd do either while case $# in 0) false ;; *) true esac or, more likely while : do case $# in 0) break;; esac But doing a break inside of the while _condition_ rather than the body just feels wrong to me. -- David Kastrup -
Sep 21, 8:05 pm 2007
Junio C Hamano
Re: [PATCH] Allow shell scripts to run with non-Bash /bin/sh
Sorry, but that is not the issue on the thread is about. BSD shell is failing the whole case statement when there is no matching case arm. -
Sep 21, 8:18 pm 2007
Junio C Hamano
Re: [PATCH] Allow shell scripts to run with non-Bash /bin/sh
I did not mean "BSD shell" in general here. The shell Eygene uses on his (unspecified version of) FreeBSD box is failing. -
Sep 21, 8:21 pm 2007
root
[PATCH] post-checkout hook, and related docs and tests
Signed-off-by: Josh England <jjengla@sandia.gov> --- Documentation/hooks.txt | 10 +++++++ git-checkout.sh | 5 +++ t/t5403-post-checkout-hook.sh | 61 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 76 insertions(+), 0 deletions(-) create mode 100755 t/t5403-post-checkout-hook.sh diff --git a/Documentation/hooks.txt b/Documentation/hooks.txt index c39edc5..e78f91a 100644 --- a/Documentation/hooks.txt +++ b/Documentation/hooks.txt @@ -87,6 +87,16 @@...
Sep 21, 4:27 pm 2007
Junio C Hamano
Re: [PATCH] post-checkout hook, and related docs and tests
People may wonder why this is not run when they do "git checkout otherbranch path.c"; the second sentence from the above description implies why it shouldn't, but the first sentence probably should state it more clearly. What's the _semantics_ you are trying to achieve? Why does the hook run every time git-bisect suggests the next revision to try? Why does the hook run when rebase starts its work? When "git pull" or "git merge" results in a fast forward, the situation is no different from...
Sep 21, 8:15 pm 2007
Josh England
Re: [PATCH] post-checkout hook, and related docs and tests
Junk. Sorry about the address. My mailer went retarded. -JE -
Sep 21, 4:35 pm 2007
Chris Moore
GIT_PAGER=cat git-svn log --> Illegal seek
I run my git commands inside an Emacs *shell* buffer, so I don't want it running 'less' all the time. I export GIT_PAGER=cat to stop it. I just tried a "git-svn log" and it failed: $ GIT_PAGER=cat git-svn log Use of uninitialized value in exec at /usr/bin/git-svn line 3451. Use of uninitialized value in concatenation (.) or string at /usr/bin/git-svn line 3451. Can't run pager: Illegal seek () I don't get a shell prompt back. It just hangs. This is on ubuntu feisty with the ubuntu-backpor...
Sep 21, 7:40 pm 2007
Eric Wong
[PATCH] git-svn: don't attempt to spawn pager if we don't wa...
Even though config_pager() unset the $pager variable, we were blindly calling exec() on it through run_pager(). Noticed-by: Chris Moore <christopher.ian.moore@gmail.com> Signed-off-by: Eric Wong <normalperson@yhbt.net> --- Chris Moore <christopher.ian.moore@gmail.com> wrote: > I run my git commands inside an Emacs *shell* buffer, so I don't want > it running 'less' all the time. I export GIT_PAGER=cat to stop it. > > I just tried a "git-svn log" and it ...
Sep 21, 9:48 pm 2007
Eygene Ryabinkin
[PATCH] Allow shell scripts to run with non-Bash /bin/sh
Good day. I had found that FreeBSD's /bin/sh refuses to work with git 1.5.3.2. correctly: no flags are recognized. The details and fix are below. I don't currently know if the Bash's behaviour is POSIXly correct or the 'case' statement semantics is not very well defined. But the following patch fixes the things for the FreeBSD. Here we go. ----- Option parsing in the Git shell scripts uses the construct 'while case "$#" in 0) break ;; esac; do ... done'. This is neat, because it needs ...
Sep 21, 5:43 pm 2007
Junio C Hamano
Re: [PATCH] Allow shell scripts to run with non-Bash /bin/sh
I am assuming that this works around _a_ bug in that /bin/sh; I would make sure I understand the nature of the bug. Is it Ok to understand that with that shell, after this construct runs: case <some word> in <case arm #1>) something ;; <case arm #2>) something else ;; esac the status from the whole case statement is false, when <some word> does not match any of the glob patterns listed in any of the case arm? That is, what does the she...
Sep 21, 10:33 pm 2007
Junio C Hamano
Re: [PATCH] Allow shell scripts to run with non-Bash /bin/sh
I do not doubt that "while case $# in 0) break ;; esac" does not work for your shell. But I think the above comment is grossly misleading. Don't mention bash there. You sound as if you are blaming bashism, but the thing is, your shell is simply broken. You have other choices than bash on BSD don't you? My quick test shows that ksh, pdksh and dash seem to work correctly. This idiom is what I picked up around late 80's from somebody, and kept using on many variants of Unices. I would find...
Sep 21, 7:52 pm 2007
Eygene Ryabinkin
Re: [PATCH] Allow shell scripts to run with non-Bash /bin/sh
Junio, good day. OK, you're right. Especially if /bin/sh from Solaris and OpenBSD are working and they are not Bash. But I would not tell that the shell is broken now -- I had not seen the POSIX specification. Did not understand the question, sorry. The thing is that FreeBSD has /bin/sh that is derived from the original Berkeley shell. And it is desirable to have it working with Git script, since I don't want to make bash (or whatever shell OK, I think I need to find out why FreeBSD's /b...
Sep 21, 11:54 pm 2007
Jakub Narebski
[PATCH 5/5] gitweb: Add 'status_str' to parse_difftree_raw_l...
Add 'status_str' to diffinfo output, which stores status (also for merge commit) as a string. This allows for easy checking if there is given status among all for merge commit, e.g. $diffinfo->{'status_str'} =~ /D/ Signed-off-by: Jakub Narebski <jnareb@gmail.com> --- This is to simplify _future_ code, so I won't cry if it is not accepted without some code that needs it. gitweb/gitweb.perl | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
Sep 21, 5:41 pm 2007
Jakub Narebski
[PATCH 4/5] gitweb: Always set 'from_file' and 'to_file' in ...
Always set 'from_file' and 'to_file' keys when parsing raw diff output format line, even if filename didn't change (file was not renamed). This allows for less code (and no problems with file named '0'); use this. Signed-off-by: Jakub Narebski <jnareb@gmail.com> --- This simplifies code a bit _and_ fortifies gitweb against filenames like '0' (although it does remove _fragments_ of lines, not lines themselves, so it is not visible in diffstat). gitweb/gitweb.perl | 17 ++++++++++------- ...
Sep 21, 5:39 pm 2007
Jakub Narebski
[PATCH 3/5] gitweb: Fix and simplify "split patch" detection
There are some cases when one line from "raw" git-diff output (raw format) corresponds to more than one patch in the patchset git-diff output; we call this situation "split patch". Old code misdetected subsequent patches (for different files) with the same pre-image and post-image as fragments of "split patch", leading to mislabeled from-file/to-file diff header etc. Old code used pre-image and post-image SHA-1 identifier ('from_id' and 'to_id') to check if current patch corresponds to old raw diff...
Sep 21, 5:38 pm 2007
Jakub Narebski
[PATCH 2/5] gitweb: No difftree output for trivial merge
In 'commitdiff' view, for the merge commit, there is an extra header for the difftree table, with links to commitdiffs to individual parents. Do not show such header when there is nothing to show, for trivial merges. This means that for trivial merge you have to go to 'commit' view to get links to diffs to each parent. Signed-off-by: Jakub Narebski <jnareb@gmail.com> --- It looked a bit stupid, lone "_1_ _2_" links. gitweb/gitweb.perl | 2 +- 1 files changed, 1 insertions(+), 1 de...
Sep 21, 5:36 pm 2007
Jakub Narebski
[PATCH 1/5] gitweb: Remove parse_from_to_diffinfo code from ...
In commit 90921740bd00029708370673fdc537522aa48e6f "gitweb: Split git_patchset_body into separate subroutines" a part of git_patchset_body code was separated into parse_from_to_diffinfo subroutine. But instead of replacing the separated code by the call to mentioned subroutine, the call to subroutine was placed before the separated code. This patch removes parse_from_to_diffinfo code from git_patchset_body subroutine. Signed-off-by: Jakub Narebski <jnareb@gmail.com> --- My bad... I h...
Sep 21, 5:35 pm 2007
Jakub Narebski
[PATCH 0/5] gitweb: Fixes and improvements related to diffs
This series of patches adds fixes, simplifications and improvements related to diff handling in gitweb ('commit', 'commitdiff' views). Becaus I didn't have access to Internet, this series is based on 1e61b7640d09015213dbcae3564fa27ac6a8c151 (v1.5.3.1-1-g1e61b76). As I am sending it via GMail WWW interface, patches are send as attachements. I send this series now, even without good Internet access, because it contains two bugfixes, and one code fix. I'll try to resend it rebase on top of current ...
Sep 21, 5:31 pm 2007
Kristian Høgsberg
[PATCH] Move option parsing code to parse-options.[ch].
Signed-off-by: Kristian Høgsberg <krh@redhat.com> --- Makefile | 2 +- builtin-commit.c | 117 ++++++++---------------------------------------------- parse-options.c | 74 ++++++++++++++++++++++++++++++++++ parse-options.h | 29 +++++++++++++ 4 files changed, 121 insertions(+), 101 deletions(-) create mode 100644 parse-options.c create mode 100644 parse-options.h diff --git a/Makefile b/Makefile index 69ebc7a..2612465 100644 --- a/Makefile +++ b/Makefile @@ -310,7 ...
Sep 21, 3:01 pm 2007
Junio C Hamano
Re: [PATCH] Move option parsing code to parse-options.[ch].
Hmmmmmmm. Is it too much to ask to pretend as if the previous "builtin-commit.c" that had these parts that did not belong to it in the first place never happened? -
Sep 21, 3:44 pm 2007
Kristian Høgsberg
[PATCH] Share add_files_to_cache() with builtin-add.c
This removes the extra copy in builtin-commit.c and uses the update() function from builtin-add.c. Signed-off-by: Kristian Høgsberg <krh@redhat.com> --- builtin-add.c | 8 +++--- builtin-commit.c | 65 +++++++++++------------------------------------------ commit.h | 2 + 3 files changed, 20 insertions(+), 55 deletions(-) diff --git a/builtin-add.c b/builtin-add.c index 5e30380..966e145 100644 --- a/builtin-add.c +++ b/builtin-add.c @@ -107,7 +107,7 @@ static void u...
Sep 21, 3:01 pm 2007
Lars Hjemli
[PATCH] Add test-script for git-merge porcelain
This test-script tries to excercise the porcelainish aspects of git-merge. Signed-off-by: Lars Hjemli <hjemli@gmail.com> --- t/t7600-merge.sh | 317 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 317 insertions(+), 0 deletions(-) create mode 100644 t/t7600-merge.sh diff --git a/t/t7600-merge.sh b/t/t7600-merge.sh new file mode 100644 index 0000000..9e58636 --- /dev/null +++ b/t/t7600-merge.sh @@ -0,0 +1,317 @@ +#!/bin/sh +# +# Copyright (c) 2007 Lars Hjeml...
Sep 21, 2:23 pm 2007
Matt Kraai
[PATCH] Conjugate "search" correctly in the git-prune-packed...
Signed-off-by: Matt Kraai <kraai@ftbfs.org> --- Documentation/git-prune-packed.txt | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Documentation/git-prune-packed.txt b/Documentation/git-prune-packed.txt index 3800edb..9f85f38 100644 --- a/Documentation/git-prune-packed.txt +++ b/Documentation/git-prune-packed.txt @@ -13,7 +13,7 @@ SYNOPSIS DESCRIPTION ----------- -This program search the `$GIT_OBJECT_DIR` for all objects that currently +This program searc...
Sep 21, 10:37 am 2007
Junio C Hamano
Re: [PATCH] Conjugate "search" correctly in the git-prune-pa...
Thanks; this and your other patch will be in 'maint'. -
Sep 21, 3:54 pm 2007
Matt Kraai
[PATCH] Move the paragraph specifying where the .idx and .pa...
Signed-off-by: Matt Kraai <kraai@ftbfs.org> --- Documentation/git-pack-objects.txt | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Documentation/git-pack-objects.txt b/Documentation/git-pack-objects.txt index 628f296..5237ab0 100644 --- a/Documentation/git-pack-objects.txt +++ b/Documentation/git-pack-objects.txt @@ -25,16 +25,16 @@ is efficient to access. The packed archive format (.pack) is designed to be unpackable without having anything else, but for...
Sep 21, 9:43 am 2007
Peter Stahlir
Git as a filesystem
Hi! Is it possible/feasible to use git as a filesystem? Like having git on top of ext3. This way I could do a gitfs-gc and there is only one pack file sitting on the disk which is a compressed version of the whole system. I am not interested in a version controlled filesystem, only in the space saving aspects. Thanks, Peter -
Sep 21, 6:51 am 2007
Johannes Schindelin
Re: Git as a filesystem
Hi, I haven't looked at it closely, but there is a GitFS: http://git.or.cz/gitwiki/InterfacesFrontendsAndTools#head-f354b40618742b976c13700fe1fe... (I am pointing you to the Git Wiki, so that you can find more pointers should you not be happy with this one.) Ciao, Dscho -
Sep 21, 7:11 am 2007
Miklos Vajna
Re: Git as a filesystem
On Fri, Sep 21, 2007 at 12:11:41PM +0100, Johannes Schindelin <Johannes.Sch= fyi, last time i had a look at it, it did not compile with git 1.5.2.x thanks, - VMiklos
Sep 21, 10:22 am 2007
Peter Stahlir
Re: Git as a filesystem
Thank you. This is was I was looking for. My motivation is whether it is possible to run a system, for example Debian on a computer on top of gitfs, and then have a huge mirror on it, for example a complete 252GB Debian mirror as space efficient as possible. I wonder how big a deltified Debian mirror in one pack file would be. :) Peter -
Sep 21, 7:41 am 2007
Nicolas Pitre
Re: Git as a filesystem
It would be just as big as the non gitified storage on disk. The space saving with git comes from efficient delta storage of _versioned_ files, i.e. multiple nearly identical versions of the same file where the stored delta is only the small difference between the first full version and subsequent versions. Unless you plan on storing many different Debian versions together, you won't benefit from any delta at all. And since Debian packages are already compressed, git won't be able to compr...
Sep 21, 9:22 am 2007
Eric Wong
Re: Git as a filesystem
On a similar note, has anybody experimented with using git to store maildirs or news spools? I'd imagine the quoted portions of most message threads could be delta-compressed quite efficiently. -- Eric Wong -
Sep 21, 7:33 pm 2007
Johannes Schindelin
Re: Git as a filesystem
Hi, I store all my mail in a git repository. Works beautifully. Except that the buffers on my laptop are constantly full :-( So a simple commit takes some waiting. Should be no issue on normal (desktop) machines. Ciao, Dscho -
Sep 21, 7:42 pm 2007
Eric Wong
Re: Git as a filesystem
D'oh. I already have maildir performance problems on my laptop. I wonder how well only having an index and no commits (no versioning), and manual packing with pack-objects would work. Packing could be optimized to order objects based on the Message-Id, References, and In-Reply-To headers, too. -- Eric Wong -
Sep 21, 10:06 pm 2007
Peter Stahlir
Re: Git as a filesystem
The 252GB stem from the fact that there are more than 10 architectures. I guess the /usr/share/doc of all architectures could be deltified (as could be all files that are architecture-independent) Right? -
Sep 21, 9:35 am 2007
Christian von Kietzell
Re: Git as a filesystem
I don't think so. Architecture-independent files are usually separated out into separate packages (think of the -doc and -data packages) that get architecture "all" and land in the Debian archive only once. So you probably won't save too much there. Chris -
Sep 21, 11:46 am 2007
Nicolas Pitre
Re: Git as a filesystem
Indeed. But how much does this represents, once compressed, compared to the rest? I doubt it is significant enough for the trouble. Nicolas -
Sep 21, 9:45 am 2007
Karl
Re: Git as a filesystem
Very, very close to 252 GB, since .deb files are already compressed. If it's just the gzip compression you want, surely there must be real filesystems that can do that. -- Karl Hasselström, kha@treskal.com www.treskal.com/kalle -
Sep 21, 8:53 am 2007
Peter Stahlir
Re: Git as a filesystem
Yes, but if there were deb and tar support in git (to automatically unpack archives and store the contents), together with the best available binary diffs I think the repository could be significantly smaller because files common to all architectures could be deltified, I did a quick check with 100MB of deb archives; the result was nearly 100MB as you said. I also did a quick check with all .so files in my /usr/lib directory; it shrunk from 50MB to 20MB, the same is achieved with tar + bz2. Bu...
Sep 21, 9:28 am 2007
Dmitry Potapov
Re: Git as a filesystem
You can unpack contain of gzipped or bzipped files and deltify it, but you cannot restore exactly the same gzip or bzip file based on its content unless you use exactly the same version of compressor that was used to create the original file. So, if you put any .deb file in such a system, you will get back a different .deb file (with a different SHA1). So, aside high CPU and memory requirements, this system cannot work in principle unless all users have exactly the same version of a compressor. D...
Sep 21, 1:29 pm 2007
Martin Langhoff
Re: Git as a filesystem
Was thinking the same - compression machinery, ordering of the files, everything. It'd be a nightmare to ensure you get back the same .deb, without a single different bit. Debian packaging toolchain could be reworked to use a more GIT-like approach - off the top of my head, at least - signing/validating the "tree" of the package rather than the completed package could allow the savings in distribution you mention, decouple the signing from the compression, and simplify things like debdiff ...
Sep 21, 7:56 pm 2007
Sam Vilain
Re: Git as a filesystem
Nightmare indeed. I actually wrote a proof of concept for this idea for gzip. http://git.catalyst.net.nz/gw?p=git.git;a=shortlog;h=archive-blobs (see also http://planet.catalyst.net.nz/blog/2006/07/17/samv/xteddy_caught_consuming_rampant_amo...) I usually warn people that this undertaking is "slightly insane". My implementation was designed to be called like "git-hash-object". What it did was look at the input stream, and detect quickly whether it looked like a gzip stream. ...
Sep 21, 11:09 pm 2007
jlh
Re: Git as a filesystem
Yes, surely. Your idea suggests that you want any file to be reconstructed on-the-fly whenever it's being requested. Isn't there the danger of killing performance, the CPU being the bottleneck? I imagine such a debian mirror has quite some I doubt so. There sure is lots of redundancy within each file and that's what compressed file systems are good for. But what you talk about is redundancy across (unversioned) files, and I don't feel there is a lot of it. Yes, I might have a few copies of ...
Sep 21, 10:38 am 2007
previous daytodaynext day
September 20, 2007September 21, 2007September 22, 2007