links of london friendship bracelet simply created an iconic joint of jewellery

2013-03-25 Thread datinghunle
Finding a great pair of silver anklet bracelets is possible, regardless of the size of your budget. Sometimes when young people achieve certain things in life, personalized gifts pick up to compliment them for their accomplishment. Sometimes young people do things like graduate from school.[url=h

Re: [PATCH 4/4] attr.c: fix matching "subdir" without the trailing slash

2013-03-25 Thread Duy Nguyen
On Mon, Mar 25, 2013 at 1:05 PM, Nguyễn Thái Ngọc Duy wrote: > The story goes back to 94bc671 (Add directory pattern matching to > attributes - 2012-12-08). Before this commit, directories are passed > to path_matches without the trailing slash. This is fine for matching > pattern "subdir" with "f

Re: [PATCH v2 3/3] t7800: run --dir-diff tests with and without symlinks

2013-03-25 Thread Johannes Sixt
The series looks good, but I can't test it because it does not apply anywhere here. Am 3/23/2013 14:31, schrieb John Keeping: > Currently the difftool --dir-diff tests may or may not use symlinks > depending on the operating system on which they are run. In one case > this has caused a test failu

Re: [PATCH v2 2/3] t7800: fix tests when difftool uses --no-symlinks

2013-03-25 Thread Johannes Sixt
Am 3/24/2013 16:15, schrieb John Keeping: > Subject: [PATCH] difftool: don't overwrite modified files > > After running the user's diff tool, git-difftool will copy any files > that differ between the working tree and the temporary tree. This is > useful when the user edits the file in their diff

Re: Bug: `gitsubmodule` does not list modules with unicode characters

2013-03-25 Thread Jens Lehmann
Am 23.03.2013 17:28, schrieb Ilya Kulakov: > The `git submodule` commands seem to ignore modules which paths contain > unicode characters. > > Consider the following steps to reproduce the problem: > > 1. Create a directory with name that contains at least one unicode character > (e.g. "ûñ

Re: Why does 'submodule add' stage the relevant portions?

2013-03-25 Thread Jens Lehmann
Am 24.03.2013 18:38, schrieb Ramkumar Ramachandra: > I find this behavior very inconsistent and annoying. Why would I want > to commit the submodule change immediately? Maybe I want to batch it > up with other changes and stage it at a later time. Why should I have > to unstage them manually now

Re: Why does 'submodule add' stage the relevant portions?

2013-03-25 Thread Ramkumar Ramachandra
Jens Lehmann wrote: > Am 24.03.2013 18:38, schrieb Ramkumar Ramachandra: >> I find this behavior very inconsistent and annoying. Why would I want >> to commit the submodule change immediately? Maybe I want to batch it >> up with other changes and stage it at a later time. Why should I have >> to

Re: [PATCH] Run git status in the background.

2013-03-25 Thread Ramkumar Ramachandra
Fredrik Gustafsson wrote: > If core.preload is set to a non-zero value, every time a git command is > executed, git status will be runned in the background if the value of > core.preload is lower than the number of seconds since last run. Counting the number of seconds since the last run is gross.

Re: [PATCH 4/4] attr.c: fix matching "subdir" without the trailing slash

2013-03-25 Thread Duy Nguyen
On Mon, Mar 25, 2013 at 02:20:31PM +0700, Duy Nguyen wrote: > On second thought, maybe we should not pass path "subdir/" at all. > Instead we create a fake dtype based on the trailing slash and pass it > down to attr.c:fill() -> path_matches(), just like how > last_exclude_matching_from_list() is c

Re: [PATCH] sha1_file: remove recursion in packed_object_info

2013-03-25 Thread thomas
Junio C Hamano writes: > Thomas Rast writes: > >> So here's a nonrecursive version. Dijkstra is probably turning over >> in his grave as we speak. >> >> I *think* I actually got it right. > > You seem to have lost the "if we cannot get delta base, this object > is BAD" check where you measure t

[PATCH] git-web--browse: recognize iTerm as a GUI terminal on OS X

2013-03-25 Thread John Szakmeister
It turns out that the presence of SECURITYSESSIONID is not sufficient for detecting the presence of a GUI under Mac OS X. SECURITYSESSIONID appears to only be set when the user has Screen Sharing enabled. Disabling Screen Sharing and relaunching the shell showed that the variable was missing, at l

Re: [PATCH v2 3/3] t7800: run --dir-diff tests with and without symlinks

2013-03-25 Thread John Keeping
On Mon, Mar 25, 2013 at 08:26:52AM +0100, Johannes Sixt wrote: > The series looks good, but I can't test it because it does not apply > anywhere here. It's built on top of da/difftool-fixes, is there some problem that stops it applying cleanly on top of that? > Am 3/23/2013 14:31, schrieb John Ke

Re: [PATCH v2 2/3] t7800: fix tests when difftool uses --no-symlinks

2013-03-25 Thread John Keeping
On Mon, Mar 25, 2013 at 08:41:59AM +0100, Johannes Sixt wrote: > Am 3/24/2013 16:15, schrieb John Keeping: > > Subject: [PATCH] difftool: don't overwrite modified files > > > > After running the user's diff tool, git-difftool will copy any files > > that differ between the working tree and the tem

Re: [RFC/PATCH] Documentation/technical/api-fswatch.txt: start with outline

2013-03-25 Thread Ramkumar Ramachandra
Just a small heads-up for people using Emacs. 24.4 has inotify support, and magit-inotify.el [1] has already started using it. From initial impressions, I'm quite impressed with it. [1]: https://github.com/magit/magit/blob/master/contrib/magit-inotify.el -- To unsubscribe from this list: send th

Re: [PATCH v2 2/3] t7800: fix tests when difftool uses --no-symlinks

2013-03-25 Thread John Keeping
On Sun, Mar 24, 2013 at 02:29:40PM -0700, David Aguilar wrote: > This makes me wonder whether the modifiable mode should be made > more explicit, either in the documentation or via a flag. > > Imagine if --dir-diff also honored --edit and --no-edit flags. > > Right now --edit is the default. If

Re: [PATCH v2 3/3] t7800: run --dir-diff tests with and without symlinks

2013-03-25 Thread Johannes Sixt
Am 3/25/2013 11:35, schrieb John Keeping: > On Mon, Mar 25, 2013 at 08:26:52AM +0100, Johannes Sixt wrote: >> The series looks good, but I can't test it because it does not apply >> anywhere here. > > It's built on top of da/difftool-fixes, is there some problem that stops > it applying cleanly on

Re: [RFC/PATCH] Documentation/technical/api-fswatch.txt: start with outline

2013-03-25 Thread Duy Nguyen
On Mon, Mar 25, 2013 at 5:44 PM, Ramkumar Ramachandra wrote: > Just a small heads-up for people using Emacs. 24.4 has inotify > support, and magit-inotify.el [1] has already started using it. From > initial impressions, I'm quite impressed with it. Have you tried it? From a quick look, it seems

Re: [PATCH v2 3/3] t7800: run --dir-diff tests with and without symlinks

2013-03-25 Thread John Keeping
On Mon, Mar 25, 2013 at 11:59:12AM +0100, Johannes Sixt wrote: > Am 3/25/2013 11:35, schrieb John Keeping: > > On Mon, Mar 25, 2013 at 08:26:52AM +0100, Johannes Sixt wrote: > >> The series looks good, but I can't test it because it does not apply > >> anywhere here. > > > > It's built on top of d

Re: [RFC/PATCH] Documentation/technical/api-fswatch.txt: start with outline

2013-03-25 Thread Ramkumar Ramachandra
Duy Nguyen wrote: > On Mon, Mar 25, 2013 at 5:44 PM, Ramkumar Ramachandra > wrote: >> Just a small heads-up for people using Emacs. 24.4 has inotify >> support, and magit-inotify.el [1] has already started using it. From >> initial impressions, I'm quite impressed with it. > > Have you tried it?

Re: propagating repo corruption across clone

2013-03-25 Thread Jeff Mitchell
On Sun, Mar 24, 2013 at 3:23 PM, Jeff King wrote: > On Sun, Mar 24, 2013 at 08:01:33PM +0100, Ævar Arnfjörð Bjarmason wrote: > >> On Sun, Mar 24, 2013 at 7:31 PM, Jeff King wrote: >> > >> > I don't have details on the KDE corruption, or why it wasn't detected >> > (if it was one of the cases I me

Re: [PATCH v2 2/3] t7800: fix tests when difftool uses --no-symlinks

2013-03-25 Thread Junio C Hamano
David Aguilar writes: > This makes me wonder whether the modifiable mode should be made > more explicit, either in the documentation or via a flag. > > Imagine if --dir-diff also honored --edit and --no-edit flags. > > Right now --edit is the default. If we had foreseen these various > edge case

Re: propagating repo corruption across clone

2013-03-25 Thread Jeff King
On Mon, Mar 25, 2013 at 09:43:23AM -0400, Jeff Mitchell wrote: > > But I haven't seen exactly what the corruption is, nor exactly what > > commands they used to clone. I've invited the blog author to give more > > details in this thread. > > The syncing was performed via a clone with git clone --

Re: propagating repo corruption across clone

2013-03-25 Thread Duy Nguyen
On Mon, Mar 25, 2013 at 9:56 PM, Jeff King wrote: > There are basically three levels of transport that can be used on a > local machine: > > 1. Hard-linking (very fast, no redundancy). > > 2. Byte-for-byte copy (medium speed, makes a separate copy of the > data, but does not check the int

Re: [RFC] test-lib.sh: No POSIXPERM for cygwin

2013-03-25 Thread Torsten Bögershausen
On 24.03.13 03:49, Eric Sunshine wrote: > On Sat, Mar 23, 2013 at 8:40 AM, Torsten Bögershausen wrote: >> Subject: [PATCH] Make core.sharedRepository work under cygwin 1.7 [..] > > s/failes/fails/ > Thanks for review, I will send a new patch in a minute. It is actually 2 patches, - The fix as d

[PATCH 1/2] Make core.sharedRepository work under cygwin 1.7

2013-03-25 Thread Torsten Bögershausen
When core.sharedRepository is used, set_shared_perm() in path.c needs lstat() to return the correct POSIX permissions. The default for cygwin is core.ignoreCygwinFSTricks = false, which means that the fast implementation in do_stat() is used instead of lstat(). lstat() under cygwin uses the Windo

Re: [PATCH v2 1/4] Move commit GPG signature verification to commit.c

2013-03-25 Thread Junio C Hamano
Sebastian Götte writes: > Signed-off-by: Sebastian Götte > --- > commit.c| 54 ++ > commit.h| 9 > gpg-interface.h | 6 ++ > pretty.c| 67 > + > 4 files ch

Re: propagating repo corruption across clone

2013-03-25 Thread Jeff King
On Mon, Mar 25, 2013 at 10:31:04PM +0700, Nguyen Thai Ngoc Duy wrote: > On Mon, Mar 25, 2013 at 9:56 PM, Jeff King wrote: > > There are basically three levels of transport that can be used on a > > local machine: > > > > 1. Hard-linking (very fast, no redundancy). > > > > 2. Byte-for-byte cop

[PATCH 2/2] optimize set_shared_perm()

2013-03-25 Thread Torsten Bögershausen
optimize set_shared_perm() in path.c: - sometimes the chown() function is called even when not needed. (This can be provoced by running t1301, and adding some debug code) Save a chmod from 400 to 400, or from 600->600 on these files: .git/info/refs+ .git/objects/info/packs+

Re: [PATCH 2/2] t5520 (pull): use test_config where appropriate

2013-03-25 Thread Junio C Hamano
Ramkumar Ramachandra writes: > Configuration from test_config does not last beyond the end of the > current test assertion, making each test easier to think about in > isolation. > > Signed-off-by: Ramkumar Ramachandra > --- > t/t5520-pull.sh | 22 +- > 1 file changed, 9 ins

Re: [PATCH 8/4] match-trees: drop "x = x" initializations

2013-03-25 Thread Junio C Hamano
René Scharfe writes: > Am 24.03.2013 05:55, schrieb Junio C Hamano: >> So I like your change for readability, but for GCC 4.4.5 we still >> need the unnecessary initialization. > > Hrm, perhaps we can make it even simpler for the compiler. And the result is even simpler for human readers, I'd ha

Re: [PATCH v2 2/3] t7800: fix tests when difftool uses --no-symlinks

2013-03-25 Thread Junio C Hamano
Johannes Sixt writes: > Am 3/24/2013 16:15, schrieb John Keeping: > ... >> +for my $file (keys %worktree) { >> next if $symlinks && -l "$b/$file"; >> next if ! -f "$b/$file"; >> >> -my $diff = compare("$b/$file", "$workdir/$file"); >> -if ($

Re: [PATCH v2] checkout: avoid unnecessary match_pathspec calls

2013-03-25 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy writes: > In checkout_paths() we do this > > - for all updated items, call match_pathspec > - for all items, call match_pathspec (inside unmerge_cache) > - for all items, call match_pathspec (for showing "path .. is unmerged) > - for updated items, call match_pathspec an

Re: propagating repo corruption across clone

2013-03-25 Thread Jeff Mitchell
On Mon, Mar 25, 2013 at 11:56 AM, Jeff King wrote: > On Mon, Mar 25, 2013 at 10:31:04PM +0700, Nguyen Thai Ngoc Duy wrote: > >> On Mon, Mar 25, 2013 at 9:56 PM, Jeff King wrote: >> > There are basically three levels of transport that can be used on a >> > local machine: >> > >> > 1. Hard-linkin

Re: [PATCH v2 3/3] git-merge-one-file: revise merge error reporting

2013-03-25 Thread Junio C Hamano
Kevin Bracey writes: > Commit 718135e improved the merge error reporting for the resolve > strategy's merge conflict and permission conflict cases, but led to a > malformed "ERROR: in myfile.c" message in the case of a file added > differently. > > This commit reverts that change, and uses an al

Re: [PATCH v2 3/3] git-merge-one-file: revise merge error reporting

2013-03-25 Thread Junio C Hamano
Junio C Hamano writes: > Kevin Bracey writes: > >> Commit 718135e improved the merge error reporting for the resolve >> strategy's merge conflict and permission conflict cases, but led to a >> malformed "ERROR: in myfile.c" message in the case of a file added >> differently. >> >> This commit r

Re: [PATCH v2 3/3] git-merge-one-file: revise merge error reporting

2013-03-25 Thread Junio C Hamano
Junio C Hamano writes: > Actually, this one is even better, I think. Again on top of your > two patches applied on 'maint'. Scratch that one. The "if test -z "$1"" block needs to be moved a bit higher, like this (the log message can stay the same): diff --git a/git-merge-one-file.sh b/git-mer

Re: [PATCH v4 2/2] mergetools/p4merge: create a base if none available

2013-03-25 Thread Junio C Hamano
Kevin Bracey writes: > Minor change from v3: that version moved initialisation of src1 higher up, > detaching it from its associated comment. This move was only required by > earlier versions, so v4 leaves src1 in its original position. The "funny filename" comment was from b539c5e8fbd3 (git-mer

Re: Why does 'submodule add' stage the relevant portions?

2013-03-25 Thread Junio C Hamano
Ramkumar Ramachandra writes: > Git 2.0 is coming soon, so I'm excited about breaking a lot of > backward compatibility ;) Don't. I lack the sense of humor normal people seem to have, so even with the smiley, anybody making such a comment will be thrown into my "do not pay attention to them" box

Re: [PATCH 1/3] contrib/subtree: stop explicitly using a bash shell

2013-03-25 Thread Junio C Hamano
Paul Campbell writes: > Don't explicitly use the Bash shell but allow the system to provide a > hopefully POSIX compatible shell at /bin/sh. > > Signed-off-by: Paul Campbell > --- > > Only the system's I was able to test this on (Debian squeeze) /bin/sh is > the dash shell. > > contrib/subtree/

stuck and need unstuck (git checkout)

2013-03-25 Thread J.V.
I was on a branch (local tracked with remote), and I wanted to checkout a remote branch so did: $git co myRemoteBranch and got a message that a lot of jar files were being untracked (files were locked). I had a server running that had some of the jar files locked, so it could not update a

Re: Why does 'submodule add' stage the relevant portions?

2013-03-25 Thread Ramkumar Ramachandra
Junio C Hamano wrote: > Ramkumar Ramachandra writes: > >> Git 2.0 is coming soon, so I'm excited about breaking a lot of >> backward compatibility ;) > > Don't. push.default is the necessary exception? -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to m

[PATCH v2 0/3] Recursion-free unpack_entry and packed_object_info

2013-03-25 Thread Thomas Rast
This is a fixed version of the initial patch, plus a two-patch implementation of a recursion-free unpack_entry. (I narrowly resisted using "unrecursify" to describe it.) I wrote: > Junio C Hamano writes: > >> The stack/recursion is used _only_ for error recovery, no? If we do >> not care about

[PATCH v2 1/3] sha1_file: remove recursion in packed_object_info

2013-03-25 Thread Thomas Rast
packed_object_info() and packed_delta_info() were mutually recursive. The former would handle ordinary types and defer deltas to the latter; the latter would use the former to resolve the delta base. This arrangement, however, leads to trouble with threaded index-pack and long delta chains on plat

[PATCH v2 3/3] sha1_file: remove recursion in unpack_entry

2013-03-25 Thread Thomas Rast
Similar to the recursion in packed_object_info(), this leads to problems on stack-space-constrained systems in the presence of long delta chains. We proceed in three phases: 1. Dig through the delta chain, saving each delta object's offsets and size on an ad-hoc stack. 2. Unpack the base obje

[PATCH v2 2/3] Refactor parts of in_delta_base_cache/cache_or_unpack_entry

2013-03-25 Thread Thomas Rast
The delta base cache lookup and test were shared. Refactor them; we'll need both parts again. Also, we'll use the clearing routine later. Signed-off-by: Thomas Rast --- sha1_file.c | 45 - 1 file changed, 32 insertions(+), 13 deletions(-) diff --git

[PATCH] log: make "show --show-signature" use gpg.program setting

2013-03-25 Thread Hans Brigman
"show --show-signature" doesn't currently use the gpg.program setting. Commit signing, tag signing, and tag verification currently use this setting properly, so the logic has been added to handle it here as well. Signed-off-by: Hans Brigman --- builtin/log.c | 4 +++- 1 file changed, 3 insert

Re: [PATCH] sha1_file: remove recursion in packed_object_info

2013-03-25 Thread Junio C Hamano
thomas writes: > Junio C Hamano writes: > >> The following comment is also lost but... >> >>> - /* We choose to only get the type of the base object and >>> -* ignore potentially corrupt pack file that expects the delta >>> -* based on a base with a wrong size. This saves tons of >>>

Re: Why does 'submodule add' stage the relevant portions?

2013-03-25 Thread Jonathan Nieder
Ramkumar Ramachandra wrote: > Junio C Hamano wrote: >> Ramkumar Ramachandra writes: >>> Git 2.0 is coming soon, so I'm excited about breaking a lot of >>> backward compatibility ;) >> >> Don't. > > push.default is the necessary exception? A while ago there was a discussion of changes of the "If

Re: Why does 'submodule add' stage the relevant portions?

2013-03-25 Thread Ramkumar Ramachandra
Jonathan Nieder wrote: > Ramkumar Ramachandra wrote: >> Junio C Hamano wrote: >>> Ramkumar Ramachandra writes: > Git 2.0 is coming soon, so I'm excited about breaking a lot of backward compatibility ;) >>> >>> Don't. >> >> push.default is the necessary exception? > > A while ago there wa

Re: Why does 'submodule add' stage the relevant portions?

2013-03-25 Thread Junio C Hamano
Ramkumar Ramachandra writes: > I'm talking about slightly better defaults at the porcelain level, > at most. If a change does not even have to break backward compatibilty, that is a regular enhancement and independent from 2.0, no? -- To unsubscribe from this list: send the line "unsubscribe gi

Re: Why does 'submodule add' stage the relevant portions?

2013-03-25 Thread Jens Lehmann
Am 25.03.2013 09:59, schrieb Ramkumar Ramachandra: > Jens Lehmann wrote: >> Am 24.03.2013 18:38, schrieb Ramkumar Ramachandra: >>> I find this behavior very inconsistent and annoying. Why would I want >>> to commit the submodule change immediately? Maybe I want to batch it >>> up with other chang

Re: Why does 'submodule add' stage the relevant portions?

2013-03-25 Thread Ramkumar Ramachandra
Junio C Hamano wrote: > Ramkumar Ramachandra writes: > >> I'm talking about slightly better defaults at the porcelain level, >> at most. > > If a change does not even have to break backward compatibilty, that > is a regular enhancement and independent from 2.0, no? Okay, I'm confused: why are you

Re: Why does 'submodule add' stage the relevant portions?

2013-03-25 Thread Jonathan Nieder
Ramkumar Ramachandra wrote: > Okay, I'm confused: why are you waiting for 2.0 to change push.default > then? Isn't that just a "slightly better default at the porcelain > level" and hence a "regular enhancement"? No. Among other aspects, "git push" is used heavily by scripts. -- To unsubscribe

Re: Why does 'submodule add' stage the relevant portions?

2013-03-25 Thread Ramkumar Ramachandra
Jonathan Nieder wrote: > Ramkumar Ramachandra wrote: > >> Okay, I'm confused: why are you waiting for 2.0 to change push.default >> then? Isn't that just a "slightly better default at the porcelain >> level" and hence a "regular enhancement"? > > No. Among other aspects, "git push" is used heavil

Re: Why does 'submodule add' stage the relevant portions?

2013-03-25 Thread Jonathan Nieder
Ramkumar Ramachandra wrote: > This whole "backward compatibility" thing is not black-or-white: it's > shades of gray. Can I ask about how "backward incompatible" the other > suggestions I listed were, just so I get a rough idea of your scale? It depends on how important the change is and how pai

Re: [PATCH v2 3/3] git-merge-one-file: revise merge error reporting

2013-03-25 Thread Eric Sunshine
On Mon, Mar 25, 2013 at 1:17 PM, Junio C Hamano wrote: > Subject: [PATCH] merge-one-file: force content conflict for "both side added" > case s/both side/both sides/ > Historically, we tried to be lenient to "both side added, slightly Ditto. > differently" case and as long as the files can be

[PATCH] Documentation/commit-tree: mention -S option

2013-03-25 Thread Brad King
Commit ba3c69a9 (commit: teach --gpg-sign option, 2011-10-05) added the -S option and documented it in the command usage. Then commit 098bbdc3 (Add -S, --gpg-sign option to manpage of "git commit", 2012-10-21) documented it in the porcelain manpage. Use wording from the porcelain to document the

Re: [PATCH 4/4] transport: drop "int cmp = cmp" hack

2013-03-25 Thread Junio C Hamano
Jeff King writes: > On Sat, Mar 23, 2013 at 09:00:05PM -0700, Junio C Hamano wrote: > >> On Thu, Mar 21, 2013 at 4:13 AM, Jeff King wrote: >> > >> > According to 47ec794, this initialization is meant to >> > squelch an erroneous uninitialized variable warning from gcc >> > 4.0.1. That version i

Re: Why does 'submodule add' stage the relevant portions?

2013-03-25 Thread Ramkumar Ramachandra
Jens Lehmann wrote: > Am 25.03.2013 09:59, schrieb Ramkumar Ramachandra: >> In my opinion, the 'git submodule add ' form is broken, because >> it doesn't relocate the object store of the submodule repository (a >> bug that we need to fix?). > > I don't think it is broken. Leaving the .git directory

Re: propagating repo corruption across clone

2013-03-25 Thread Junio C Hamano
Jeff King writes: > We _do_ see a problem during the checkout phase, but we don't propagate > a checkout failure to the exit code from clone. That is bad in general, > and should probably be fixed. Though it would never find corruption of > older objects in the history, anyway, so checkout shoul

Re: propagating repo corruption across clone

2013-03-25 Thread Jeff King
On Mon, Mar 25, 2013 at 01:01:59PM -0700, Junio C Hamano wrote: > Jeff King writes: > > > We _do_ see a problem during the checkout phase, but we don't propagate > > a checkout failure to the exit code from clone. That is bad in general, > > and should probably be fixed. Though it would never f

Re: [PATCH] Documentation/commit-tree: mention -S option

2013-03-25 Thread Junio C Hamano
Brad King writes: > Commit ba3c69a9 (commit: teach --gpg-sign option, 2011-10-05) added the > -S option and documented it in the command usage. Then commit 098bbdc3 > (Add -S, --gpg-sign option to manpage of "git commit", 2012-10-21) > documented it in the porcelain manpage. Use wording from th

Re: propagating repo corruption across clone

2013-03-25 Thread Jeff King
On Mon, Mar 25, 2013 at 12:32:50PM -0400, Jeff Mitchell wrote: > I think what was conflating the issue in my testing is that with > --mirror it implies --bare, so there would be checking of the objects > when the working tree was being created, hence --mirror won't show the > error a normal clone

Re: [PATCH] git-web--browse: recognize iTerm as a GUI terminal on OS X

2013-03-25 Thread Christian Couder
On Mon, Mar 25, 2013 at 11:13 AM, John Szakmeister wrote: > > Here's an updated patch. Thank you for it. For what it's worth: Acked-by: Christian Couder > I also noticed that git-bisect.sh is > also trying to determine if a GUI is present by looking for > SECURITYSESSIONID as well. I wonder i

[PATCH 0/9] corrupt object potpourri

2013-03-25 Thread Jeff King
I started these patches with the intent of improving clone's behavior on corrupt objects, but my testing uncovered some other nastiness, including two infinite loops in the streaming code!. Yikes. I think 1-7 are good. We might want to tweak the die() behavior of patch 8, but I think it should com

Re: [PATCH] Documentation/commit-tree: mention -S option

2013-03-25 Thread Brad King
On 03/25/2013 04:06 PM, Junio C Hamano wrote: > Brad King writes: > >> Commit ba3c69a9 (commit: teach --gpg-sign option, 2011-10-05) added the >> -S option and documented it in the command usage. Then commit 098bbdc3 >> (Add -S, --gpg-sign option to manpage of "git commit", 2012-10-21) >> docume

[PATCH 1/9] stream_blob_to_fd: detect errors reading from stream

2013-03-25 Thread Jeff King
We call read_istream, but never check its return value for errors. This can lead to us looping infinitely, as we just keep trying to write "-1" bytes (and we do not notice the error, as we simply check that write_in_full reports the same number of bytes we fed it, which of course is also -1). Sign

[PATCH 2/9] check_sha1_signature: check return value from read_istream

2013-03-25 Thread Jeff King
It's possible for read_istream to return an error, in which case we just end up in an infinite loop (aside from EOF, we do not even look at the result, but just feed it straight into our running hash). Signed-off-by: Jeff King --- I didn't actually trigger this code path in any of my tests, but I

[PATCH 3/9] read_istream_filtered: propagate read error from upstream

2013-03-25 Thread Jeff King
The filter istream pulls data from an "upstream" stream, running it through a filter function. However, we did not properly notice when the upstream filter yielded an error, and just returned what we had read. Instead, we should propagate the error. Signed-off-by: Jeff King --- I don't know if we

[PATCH 4/9] avoid infinite loop in read_istream_loose

2013-03-25 Thread Jeff King
The read_istream_loose function loops on inflating a chunk of data from an mmap'd loose object. We end the loop when we run out of space in our output buffer, or if we see a zlib error. We need to treat Z_BUF_ERROR specially, though, as it is not fatal; it is just zlib's way of telling us that we

[PATCH 5/9] add test for streaming corrupt blobs

2013-03-25 Thread Jeff King
We do not have many tests for handling corrupt objects. This new test at least checks that we detect a byte error in a corrupt blob object while streaming it out with cat-file. Signed-off-by: Jeff King --- t/t1060-object-corruption.sh | 34 ++ 1 file changed, 34 i

[PATCH 6/9] streaming_write_entry: propagate streaming errors

2013-03-25 Thread Jeff King
When we are streaming an index blob to disk, we store the error from stream_blob_to_fd in the "result" variable, and then immediately overwrite that with the return value of "close". That means we catch errors on close (e.g., problems committing the file to disk), but miss anything which happened b

[PATCH 7/9] add tests for cloning corrupted repositories

2013-03-25 Thread Jeff King
We try not to let corruption pass unnoticed over fetches and clones. For the most part, this works, but there are some broken corner cases, including: 1. We do not detect missing objects over git-aware transports. This is a little hard to test, because the sending side will actually co

[PATCH 8/9] clone: die on errors from unpack_trees

2013-03-25 Thread Jeff King
When clone is populating the working tree, it ignores the return status from unpack_trees; this means we may report a successful clone, even when the checkout fails. When checkout fails, we may want to leave the $GIT_DIR in place, as it might be possible to recover the data through further use of

[PATCH 9/9] clone: run check_everything_connected

2013-03-25 Thread Jeff King
When we fetch from a remote, we do a revision walk to make sure that what we received is connected to our existing history. We do not do the same check for clone, which should be able to check that we received an intact history graph. The upside of this patch is that it will make clone more resili

Re: [PATCH] Documentation/commit-tree: mention -S option

2013-03-25 Thread Junio C Hamano
Brad King writes: > Commit ba3c69a9 (commit: teach --gpg-sign option, 2011-10-05) added the > -S option and documented it in the command usage. Then commit 098bbdc3 > (Add -S, --gpg-sign option to manpage of "git commit", 2012-10-21) > documented it in the porcelain manpage. Use wording from th

[PATCH v2] commit-tree: document -S option consistently

2013-03-25 Thread Brad King
Commit ba3c69a9 (commit: teach --gpg-sign option, 2011-10-05) added the -S option but documented it in the command usage without indicating that the value is optional and forgot to mention it in the manpage. Later commit 098bbdc3 (Add -S, --gpg-sign option to manpage of "git commit", 2012-10-21) d

Re: [PATCH 4/4] transport: drop "int cmp = cmp" hack

2013-03-25 Thread Jeff King
On Mon, Mar 25, 2013 at 12:50:54PM -0700, Junio C Hamano wrote: > >> transport.c: In function 'get_refs_via_rsync': > >> transport.c:127:29: error: 'cmp' may be used uninitialized in this > >> function [-Werror=uninitialized] > >> transport.c:109:7: note: 'cmp' was declared here > >> > >> gcc (Ub

Re: [PATCH 5/9] add test for streaming corrupt blobs

2013-03-25 Thread Jonathan Nieder
Jeff King wrote: > We do not have many tests for handling corrupt objects. This > new test at least checks that we detect a byte error in a > corrupt blob object while streaming it out with cat-file. Thanks. [...] > +# convert "1234abcd" to ".git/objects/12/34abcd" > +obj_to_file() { > + ech

Re: [PATCH 5/9] add test for streaming corrupt blobs

2013-03-25 Thread Jeff King
On Mon, Mar 25, 2013 at 02:10:38PM -0700, Jonathan Nieder wrote: > > +# convert "1234abcd" to ".git/objects/12/34abcd" > > +obj_to_file() { > > + echo "$(git rev-parse --git-dir)/objects/$(git rev-parse "$1" | sed > > 's,..,&/,')" > > +} > > Maybe this would be clearer in multiple lines? > >

Re: [PATCH] log: make "show --show-signature" use gpg.program setting

2013-03-25 Thread Jeff King
On Mon, Mar 25, 2013 at 01:03:52PM -0500, Hans Brigman wrote: > "show --show-signature" doesn't currently use the gpg.program setting. > Commit signing, tag signing, and tag verification currently use this setting > properly, so the logic has been added to handle it here as well. Please wrap y

Re: [PATCH 6/9] streaming_write_entry: propagate streaming errors

2013-03-25 Thread Eric Sunshine
On Mon, Mar 25, 2013 at 4:22 PM, Jeff King wrote: > diff --git a/entry.c b/entry.c > index 17a6bcc..002b2f2 100644 > --- a/entry.c > +++ b/entry.c > @@ -126,8 +126,10 @@ static int streaming_write_entry(struct cache_entry *ce, > char *path, > fd = open_output_fd(path, ce, to_tempfile); >

Re: [PATCH 6/9] streaming_write_entry: propagate streaming errors

2013-03-25 Thread Jeff King
On Mon, Mar 25, 2013 at 05:35:51PM -0400, Eric Sunshine wrote: > On Mon, Mar 25, 2013 at 4:22 PM, Jeff King wrote: > > diff --git a/entry.c b/entry.c > > index 17a6bcc..002b2f2 100644 > > --- a/entry.c > > +++ b/entry.c > > @@ -126,8 +126,10 @@ static int streaming_write_entry(struct cache_entry

git ate my home directory :-(

2013-03-25 Thread Richard Weinberger
Hi! Today I've discovered that on the build server my home directory was empty. A post-mortem analysis showed that the git-clean command I've added to my kernel build script is the evil doer. In my scripts I'm setting GIT_DIR to use git-fetch and git-reset without changing the current working d

Re: [PATCH 6/9] streaming_write_entry: propagate streaming errors

2013-03-25 Thread Jonathan Nieder
Jeff King wrote: > When we are streaming an index blob to disk, we store the > error from stream_blob_to_fd in the "result" variable, and > then immediately overwrite that with the return value of > "close". Good catch. [...] > --- a/entry.c > +++ b/entry.c > @@ -126,8 +126,10 @@ static int stre

Re: [PATCH] git-web--browse: recognize iTerm as a GUI terminal on OS X

2013-03-25 Thread Junio C Hamano
John Szakmeister writes: > It turns out that the presence of SECURITYSESSIONID is not sufficient > for detecting the presence of a GUI under Mac OS X. SECURITYSESSIONID > appears to only be set when the user has Screen Sharing enabled. > Disabling Screen Sharing and relaunching the shell showed

[PATCH v2] difftool: don't overwrite modified files

2013-03-25 Thread John Keeping
After running the user's diff tool, git-difftool will copy any files that differ between the working tree and the temporary tree. This is useful when the user edits the file in their diff tool but is wrong if they edit the working tree file while examining the diff. Instead of copying uncondition

Re: git ate my home directory :-(

2013-03-25 Thread Jonathan Nieder
Hi, Richard Weinberger wrote: > In my scripts I'm setting GIT_DIR to use git-fetch and git-reset without > changing the > current working directory all the time. Yeah, for historical reasons GIT_WORK_TREE defaults to $(pwd) when GIT_DIR is explicitly set. In git versions including the patch 2c

[PATCH v2 6/9] streaming_write_entry: propagate streaming errors

2013-03-25 Thread Jeff King
On Mon, Mar 25, 2013 at 02:39:34PM -0700, Jonathan Nieder wrote: > > --- a/entry.c > > +++ b/entry.c > > @@ -126,8 +126,10 @@ static int streaming_write_entry(struct cache_entry > > *ce, char *path, > > fd = open_output_fd(path, ce, to_tempfile); > > if (0 <= fd) { > > result

Re: [PATCH v2 3/3] t7800: run --dir-diff tests with and without symlinks

2013-03-25 Thread Junio C Hamano
Johannes Sixt writes: > Am 3/25/2013 11:35, schrieb John Keeping: >> On Mon, Mar 25, 2013 at 08:26:52AM +0100, Johannes Sixt wrote: >>> The series looks good, but I can't test it because it does not apply >>> anywhere here. >> >> It's built on top of da/difftool-fixes, is there some problem that

Re: [PATCH 4/4] transport: drop "int cmp = cmp" hack

2013-03-25 Thread Junio C Hamano
Jeff King writes: > I wonder, though, what made you look at this. It did not come up in my > list of -Wuninitialized warnings. Did it get triggered by one of the > other gcc versions? No, but the function in question has that questionable construct written by somebody who does not understand lin

Re: git ate my home directory :-(

2013-03-25 Thread Junio C Hamano
Jonathan Nieder writes: > In git versions including the patch 2cd83d10bb6b (setup: suppress > implicit "." work-tree for bare repos, 2013-03-08, currently in "next" > but not "master"), you can set GIT_IMPLICIT_WORK_TREE=0 to avoid this > behavior. WAT? -- To unsubscribe from this list: send the

Re: git ate my home directory :-(

2013-03-25 Thread Junio C Hamano
Jonathan Nieder writes: > Richard Weinberger wrote: > >> In my scripts I'm setting GIT_DIR to use git-fetch and git-reset without >> changing the >> current working directory all the time. > > Yeah, for historical reasons GIT_WORK_TREE defaults to $(pwd) when > GIT_DIR is explicitly set. And it

Re: git ate my home directory :-(

2013-03-25 Thread Jonathan Nieder
Junio C Hamano wrote: > Jonathan Nieder writes: >> In git versions including the patch 2cd83d10bb6b (setup: suppress >> implicit "." work-tree for bare repos, 2013-03-08, currently in "next" >> but not "master"), you can set GIT_IMPLICIT_WORK_TREE=0 to avoid this >> behavior. > > WAT? Is that fa

Re: git ate my home directory :-(

2013-03-25 Thread Richard Weinberger
Am 25.03.2013 23:06, schrieb Junio C Hamano: Jonathan Nieder writes: Richard Weinberger wrote: In my scripts I'm setting GIT_DIR to use git-fetch and git-reset without changing the current working directory all the time. Yeah, for historical reasons GIT_WORK_TREE defaults to $(pwd) when G

Re: git ate my home directory :-(

2013-03-25 Thread Jonathan Nieder
Junio C Hamano wrote: >I do not > know how things will break when the end user sets and exports it to > the environment, and I do not think we would want to make any > promise on how it works. That's a reasonable desire, and it means it'

Re: git ate my home directory :-(

2013-03-25 Thread Jonathan Nieder
Richard Weinberger wrote: > Okay, I have to set GIT_DIR _and_ GIT_WORK_TREE to make my scripts safe again? > I've always set only GIT_DIR because it just worked (till today...). chdir-ing into the git repo without setting any GIT_* vars is probably the simplest way to go. -- To unsubscribe from t

Re: git ate my home directory :-(

2013-03-25 Thread Junio C Hamano
Jonathan Nieder writes: > Junio C Hamano wrote: >> Jonathan Nieder writes: > >>> In git versions including the patch 2cd83d10bb6b (setup: suppress >>> implicit "." work-tree for bare repos, 2013-03-08, currently in "next" >>> but not "master"), you can set GIT_IMPLICIT_WORK_TREE=0 to avoid this

Re: git ate my home directory :-(

2013-03-25 Thread Junio C Hamano
Richard Weinberger writes: > Okay, I have to set GIT_DIR _and_ GIT_WORK_TREE to make my scripts safe again? > I've always set only GIT_DIR because it just worked (till today...). That means you never run your script inside a subdirectory ;-) If your $GIT_DIR is tied to a single working tree, a

Re: git ate my home directory :-(

2013-03-25 Thread Brandon Casey
On Mon, Mar 25, 2013 at 3:13 PM, Jonathan Nieder wrote: > Junio C Hamano wrote: > >>I do not >> know how things will break when the end user sets and exports it to >> the environment, and I do not think we would want to make any >> promis

  1   2   >