Re: [PATCH 4/4] gc docs: downplay the usefulness of --aggressive

2019-03-18 Thread Johannes Sixt
Am 18.03.19 um 17:15 schrieb Ævar Arnfjörð Bjarmason: > +Using this option may optimize for disk space at the expense of > +runtime performance. See the `--depth` and `--window` documentation in > +linkgit:git-repack[1]. It is not recommended that this option be used > +to improve performance for a

git-format-patch and dates

2019-03-18 Thread George Spelvin

Re: Improve support for 'git config gc.reflogExpire never'

2019-03-18 Thread Jeff King
On Fri, Mar 08, 2019 at 10:27:11AM +0200, Mikko Rantalainen wrote: > If I configure bare repo with > > git config gc.pruneExpire never > git config gc.reflogExpire never > > then git will never garbage collect any commit ever stored in the repo. > This is what I want. > > However, all commits r

Re: how can i "gc" or "prune" objects related to a deleted remote?

2019-03-18 Thread Jeff King
On Fri, Mar 08, 2019 at 10:36:44AM -0500, Robert P. J. Day wrote: > as an example, i cloned the linux kernel source tree, then added > the linux-next repo as a remote -- the end result was two pack files > (the smaller one i'm assuming being for linux-next): > > $ ls -l .git/objects/pack > tota

Re: [PATCH v2 0/7] gc: minor code cleanup + contention fixes

2019-03-18 Thread Jeff King
On Thu, Mar 14, 2019 at 01:34:32PM +0100, Ævar Arnfjörð Bjarmason wrote: > Addresse Peff's comments to v1. For a couple of patches I've faked up > his SOB where I copy/pasted a comment or code from a v1 comment > verbatim. Will see if he acks that. Yep, for the record, those are fine (actually, I

Re: [PATCH v3 6/8] reflog tests: assert lack of early exit with expiry="never"

2019-03-18 Thread Jeff King
On Fri, Mar 15, 2019 at 04:59:57PM +0100, Ævar Arnfjörð Bjarmason wrote: > When gc.reflogExpire and gc.reflogExpireUnreachable are set to "never" > and --stale-fix isn't in effect (covered by the first part of the "if" > statement being modified here) we *could* exit early without > pointlessly lo

[no subject]

2019-03-18 Thread حمد العويس
مُرسل من هاتف Huawei الخاص بي

Re: [PATCH 2/3] midx: verify: group objects by packfile to speed up object verification

2019-03-18 Thread Junio C Hamano
Ævar Arnfjörð Bjarmason writes: + if (a->pack_int_id < b->pack_int_id) + return -1; + if (a->pack_int_id > b->pack_int_id) + return 1; + + return 0; +} >>> ... >>> succinct subtraction idiom of e.g. (in this case): >>> >>> return b->pac

Re: [PATCH] asciidoctor-extensions: provide ``

2019-03-18 Thread Junio C Hamano
Jeff King writes: > So in my mind, the endgame is that we eventually drop asciidoc in favor > of asciidoctor. The repo at: > > https://github.com/asciidoc/asciidoc > > says: > > NOTE: This implementation is written in Python 2, which EOLs in Jan > 2020. AsciiDoc development is being continu

Re: [PATCH] asciidoctor-extensions: provide ``

2019-03-18 Thread Jeff King
On Mon, Mar 18, 2019 at 10:46:45PM -0400, Jeff King wrote: > > * Provide the `mansource` attribute to Asciidoctor. This attribute > > looks promising until one realizes that it can only be given inside > > the source file (the .txt file in our case), *not* on the command > > line usi

Re: [PATCH 0/4] doc-diff: support diffing from/to AsciiDoc(tor)

2019-03-18 Thread Jeff King
On Sun, Mar 17, 2019 at 07:35:59PM +0100, Martin Ågren wrote: > I've taught `doc-diff` a few new knobs to support usage like > > $ ./doc-diff --from-asciidoc --to-asciidoctor HEAD HEAD > > and I don't think I've messed it up too badly in the process. I'm open > to the idea that this might not

Re: [PATCH 2/2] trace2: randomize/timestamp trace2 targets

2019-03-18 Thread Jeff King
On Mon, Mar 18, 2019 at 10:40:00AM +0900, Junio C Hamano wrote: > After seeing that the possibilities got discussed on the list, and > that nobody seems to be very much demanding customizability (I am > taking Ævar's mention of strftime as a mere "if we were doing an > optional timestamp, why not

Re: [PATCH] asciidoctor-extensions: provide ``

2019-03-18 Thread Jeff King
On Mon, Mar 18, 2019 at 10:46:46PM -0400, Jeff King wrote: > > Let's instead try to stay as close as possible to what asciidoc.conf > > does. We'll make it fairly obvious that we aim to inject the exact same > > three lines of `` that asciidoc.conf provides. The only > > somewhat tricky part is th

Re: [PATCH] asciidoctor-extensions: provide ``

2019-03-18 Thread Jeff King
On Sun, Mar 17, 2019 at 03:47:47PM +0100, Martin Ågren wrote: > Cc Todd and Peff who had a brief exchange [1] a while ago. Apparently > Todd saw this "[FIXME: source]" on Fedora but Peff did not on Debian. > I'm on Ubuntu 18.04 and used to see this also on 16.04. I'm not sure > what might make

Re: [PATCH 2/4] gc docs: include the "gc.*" section from "config" in "gc"

2019-03-18 Thread Duy Nguyen
On Mon, Mar 18, 2019 at 11:15 PM Ævar Arnfjörð Bjarmason wrote: > > Rather than duplicating the documentation for the various "gc" options > let's include the "gc" docs from git-config. They were mostly better > already, and now we don't have the same docs in two places with subtly > different wor

Re: [PATCH] git-diff.txt: prefer not using ..

2019-03-18 Thread Denton Liu
On Mon, Mar 18, 2019 at 03:45:25PM +0900, Junio C Hamano wrote: > Duy Nguyen writes: > > >> - This is synonymous to the previous form. If on > >> + This is synonymous to the previous form. However, > >> + users should prefer the previous form over this form > >> + as th

Re: [PATCH] git-diff.txt: prefer not using ..

2019-03-18 Thread Junio C Hamano
Ævar Arnfjörð Bjarmason writes: > Some of this thread's confusing, and on re-reading I see my reply hasn't > helped much. > > To clarify. There's at least these things to consider: > > 1. What should the semantics of .. or ... be? > 2. What semantics (regardless of syntax) should we recommend for

Re: [PATCH v8 10/11] sequencer.c: define describe_cleanup_mode

2019-03-18 Thread Ramsay Jones
On 18/03/2019 20:04, Eric Sunshine wrote: > On Sun, Mar 17, 2019 at 6:16 AM Denton Liu wrote: >> Define a function which allows us to get the string configuration value >> of a enum commit_msg_cleanup_mode. This is done by refactoring >> get_cleanup_mode such that it uses a lookup table to find

Re: [PATCH v4 00/26] Add new command 'switch'

2019-03-18 Thread Junio C Hamano
Duy Nguyen writes: > On Mon, Mar 18, 2019 at 11:54 AM Junio C Hamano wrote: >> I often find "git reset --hard " after a > > It still bugs me that I need to use this to abort some in-progress > operation. Note that my comment was *NOT* about aborting the in-progress "am". What happens in that "I

Re: [RFC/PATCH] point pull requesters to Git Git Gadget

2019-03-18 Thread Junio C Hamano
Jeff King writes: > On Mon, Mar 18, 2019 at 09:48:42PM +, Thomas Gummerer wrote: > >> > It looks like GitGitGadget just uses normal SMTP to submit the messages. >> > I wonder if normal people using gmail as their SMTP server for >> > send-email also suffer from this. I've not ever noticed it,

Re: [PATCH v2 2/3] parse-options: make OPT_ARGUMENT() more useful

2019-03-18 Thread Junio C Hamano
Jeff King writes: > The way it is written, I think the intent is that you would do: > > OPT_ARGUMENT("foo", &saw_foo, ...), > OPT_ARGUMENT("no-foo", &saw_no_foo, ...), > > I'm happy to punt on it until it ever comes up (which I suspect may be > never). Yeah, having to have one extra element

Re: [PATCH 0/4] gc docs: modernize and fix the documentation

2019-03-18 Thread Jeff King
On Mon, Mar 18, 2019 at 11:45:39PM +0100, Ævar Arnfjörð Bjarmason wrote: > > I don't think the quarantine stuff should impact contention at all. It's > > only quarantining the objects, which are the least contentious part of > > Git (because object content is idempotent, so we don't do any locking

こんにちは

2019-03-18 Thread JOY
こんにちは あなたの意見に耳を傾け、そしてビジネスパートナーシップのためにあなたを信頼することは私の喜びです。私たちは以前に会ったことはありませんでしたが、人生で成功するためには人を信頼するリスクを冒さなければならないことがあると思います。私はJoy Nitaさんです。そしてコートジボワール北部のBouakeから来ました。一人で扱うには若すぎるのであなたの助けとアドバイスが必要です。 私の故父親が、コートジボワールのアビジャンにある経済的な首都の銀行に合計3500万ドルを預けました。状況に応じて、私は自分の国にこのお金を投資したいと思った。政治が頻繁であり、不安定さと安全保障上の理由か

Re: [PATCH v4 14/26] switch: add --discard-changes

2019-03-18 Thread Eric Sunshine
On Sun, Mar 17, 2019 at 8:51 AM Nguyễn Thái Ngọc Duy wrote: > --discard-changes is a better name than --force for this option since > it's what really happens. --force is turned to an alias for > --discard-changes. But it's meant to an alias for potentially more force s/to an/to be an/ > options

Re: [PATCH 4/4] gc docs: downplay the usefulness of --aggressive

2019-03-18 Thread Jeff King
On Mon, Mar 18, 2019 at 11:13:57PM +0100, Ævar Arnfjörð Bjarmason wrote: > What happened here is that I'd entirely forgotten about your 07e7dbf0db > and in skimming while writing this throught we were still picking larger > depth values, which we aren't. > > I'll fix that, and see that gc.aggress

Re: [PATCH 3/4] gc docs: de-duplicate "OPTIONS" and "CONFIGURATION"

2019-03-18 Thread Jeff King
On Mon, Mar 18, 2019 at 11:48:46PM +0100, Ævar Arnfjörð Bjarmason wrote: > > I know this last sentence came from the existing documentation, but I > > wonder if we should be more vague here. We'd pack with "repack -dl" when > > we have just loose objects, and "repack -Adl" when we have too many >

Re: [PATCH 3/4] gc docs: de-duplicate "OPTIONS" and "CONFIGURATION"

2019-03-18 Thread Ævar Arnfjörð Bjarmason
On Mon, Mar 18 2019, Jeff King wrote: > On Mon, Mar 18, 2019 at 05:15:01PM +0100, Ævar Arnfjörð Bjarmason wrote: > >> In an earlier commit I started including the "gc.*" documentation from >> git-config(1) in the git-gc(1) documentation. That still left us in a >> state where the "--auto" option

Re: [PATCH 0/4] gc docs: modernize and fix the documentation

2019-03-18 Thread Ævar Arnfjörð Bjarmason
On Mon, Mar 18 2019, Jeff King wrote: > On Mon, Mar 18, 2019 at 05:14:58PM +0100, Ævar Arnfjörð Bjarmason wrote: > >> This series is unrelated (and does not conflict with) my in-flight gc >> contention series >> (https://public-inbox.org/git/20190315155959.12390-1-ava...@gmail.com/), >> but the

Re: [RFC/PATCH] point pull requesters to Git Git Gadget

2019-03-18 Thread Ævar Arnfjörð Bjarmason
On Mon, Mar 18 2019, Jeff King wrote: > On Mon, Mar 18, 2019 at 11:52:54AM +0900, Junio C Hamano wrote: > >> Jeff King writes: >> >> > Hmm. I guess it is still an issue in GGG. This thread has identical >> > timestamps on patches 1 and 2 (and my server received them out of order >> > by 2 secon

Re: [PATCH 1/4] gc docs: modernize the advice for manually running "gc"

2019-03-18 Thread Ævar Arnfjörð Bjarmason
On Mon, Mar 18 2019, Jeff King wrote: > On Mon, Mar 18, 2019 at 05:14:59PM +0100, Ævar Arnfjörð Bjarmason wrote: > >> The docs have been recommending that users need to run this manually, >> but that hasn't been needed in practice for a long time. >> >> Let's instead have this reflect reality an

Re: [PATCH 4/4] gc docs: downplay the usefulness of --aggressive

2019-03-18 Thread Ævar Arnfjörð Bjarmason
On Mon, Mar 18 2019, Jeff King wrote: > On Mon, Mar 18, 2019 at 01:28:24PM -0700, Jonathan Nieder wrote: > >> > +Using this option may optimize for disk space at the expense of >> > +runtime performance. See the `--depth` and `--window` documentation in >> > +linkgit:git-repack[1]. It is not rec

Re: [PATCH 2/3] midx: verify: group objects by packfile to speed up object verification

2019-03-18 Thread Ævar Arnfjörð Bjarmason
On Mon, Mar 18 2019, Jeff Hostetler wrote: > On 3/18/2019 11:53 AM, Ævar Arnfjörð Bjarmason wrote: >> >> On Mon, Mar 18 2019, Jeff Hostetler via GitGitGadget wrote: >> >>> +static int compare_pair_pos_vs_id(const void *_a, const void *_b) >>> +{ >>> + struct pair_pos_vs_id *a = (struct pair_po

Re: [RFC/PATCH] point pull requesters to Git Git Gadget

2019-03-18 Thread Jeff King
On Mon, Mar 18, 2019 at 09:48:42PM +, Thomas Gummerer wrote: > > It looks like GitGitGadget just uses normal SMTP to submit the messages. > > I wonder if normal people using gmail as their SMTP server for > > send-email also suffer from this. I've not ever noticed it, but I > > don't know how

Re: [PATCH 0/4] gc docs: modernize and fix the documentation

2019-03-18 Thread Jeff King
On Mon, Mar 18, 2019 at 05:14:58PM +0100, Ævar Arnfjörð Bjarmason wrote: > This series is unrelated (and does not conflict with) my in-flight gc > contention series > (https://public-inbox.org/git/20190315155959.12390-1-ava...@gmail.com/), > but the "git-gc" docs should be updated to discuss the >

Re: [RFC/PATCH] point pull requesters to Git Git Gadget

2019-03-18 Thread Thomas Gummerer
On 03/18, Jeff King wrote: > On Mon, Mar 18, 2019 at 11:52:54AM +0900, Junio C Hamano wrote: > > > Jeff King writes: > > > > > Hmm. I guess it is still an issue in GGG. This thread has identical > > > timestamps on patches 1 and 2 (and my server received them out of order > > > by 2 seconds, so

Re: [PATCH 3/4] gc docs: de-duplicate "OPTIONS" and "CONFIGURATION"

2019-03-18 Thread Jeff King
On Mon, Mar 18, 2019 at 05:15:01PM +0100, Ævar Arnfjörð Bjarmason wrote: > In an earlier commit I started including the "gc.*" documentation from > git-config(1) in the git-gc(1) documentation. That still left us in a > state where the "--auto" option and "gc.auto" were redundantly > discussing th

Re: [PATCH 2/3] midx: verify: group objects by packfile to speed up object verification

2019-03-18 Thread Jeff Hostetler
On 3/18/2019 11:53 AM, Ævar Arnfjörð Bjarmason wrote: On Mon, Mar 18 2019, Jeff Hostetler via GitGitGadget wrote: +static int compare_pair_pos_vs_id(const void *_a, const void *_b) +{ + struct pair_pos_vs_id *a = (struct pair_pos_vs_id *)_a; + struct pair_pos_vs_id *b = (struct

Re: [PATCH 2/4] gc docs: include the "gc.*" section from "config" in "gc"

2019-03-18 Thread Jeff King
On Mon, Mar 18, 2019 at 05:15:00PM +0100, Ævar Arnfjörð Bjarmason wrote: > Rather than duplicating the documentation for the various "gc" options > let's include the "gc" docs from git-config. They were mostly better > already, and now we don't have the same docs in two places with subtly > differ

Re: [PATCH 1/4] gc docs: modernize the advice for manually running "gc"

2019-03-18 Thread Jeff King
On Mon, Mar 18, 2019 at 05:14:59PM +0100, Ævar Arnfjörð Bjarmason wrote: > The docs have been recommending that users need to run this manually, > but that hasn't been needed in practice for a long time. > > Let's instead have this reflect reality and say that most users don't > need to run this

Re: [PATCH 4/4] gc docs: downplay the usefulness of --aggressive

2019-03-18 Thread Jeff King
On Mon, Mar 18, 2019 at 01:28:24PM -0700, Jonathan Nieder wrote: > > +Using this option may optimize for disk space at the expense of > > +runtime performance. See the `--depth` and `--window` documentation in > > +linkgit:git-repack[1]. It is not recommended that this option be used > > +to impro

Re: fast-import should fail on invalid unsupported paths

2019-03-18 Thread Jeff King
On Mon, Mar 18, 2019 at 06:28:16PM +0100, Björn Kautler wrote: > I think fast-import should refuse to import paths Git cannot handle > properly later on, so that the migration fails early and the frontend > that generates the fast-import stream can be fixed / configured to not > include such inval

Re: [RFC/PATCH] point pull requesters to Git Git Gadget

2019-03-18 Thread Jeff King
On Mon, Mar 18, 2019 at 11:52:54AM +0900, Junio C Hamano wrote: > Jeff King writes: > > > Hmm. I guess it is still an issue in GGG. This thread has identical > > timestamps on patches 1 and 2 (and my server received them out of order > > by 2 seconds, so mutt orders them wrong): > > > > https:

Re: [PATCH v2 2/3] parse-options: make OPT_ARGUMENT() more useful

2019-03-18 Thread Jeff King
On Mon, Mar 18, 2019 at 11:47:20AM +0900, Junio C Hamano wrote: > Jeff King writes: > > >> +`OPT_ARGUMENT(long, &int_var, description)`:: > >>Introduce a long-option argument that will be kept in `argv[]`. > >> + If this option was seen, `int_var` will be set to one (except > >> + if a `NU

Re: [PATCH v8 10/11] sequencer.c: define describe_cleanup_mode

2019-03-18 Thread Eric Sunshine
On Mon, Mar 18, 2019 at 4:30 PM Denton Liu wrote: > On Mon, Mar 18, 2019 at 04:04:22PM -0400, Eric Sunshine wrote: > > These two Reviewed-by: lines should be dropped for a couple reasons. > > > I was using it to give credit for changes that I incorporated in > response to a review. In addition, it

Re: [PATCH v8 10/11] sequencer.c: define describe_cleanup_mode

2019-03-18 Thread Denton Liu
On Mon, Mar 18, 2019 at 04:04:22PM -0400, Eric Sunshine wrote: > On Sun, Mar 17, 2019 at 6:16 AM Denton Liu wrote: > > Define a function which allows us to get the string configuration value > > of a enum commit_msg_cleanup_mode. This is done by refactoring > > get_cleanup_mode such that it uses a

Re: [PATCH 4/4] gc docs: downplay the usefulness of --aggressive

2019-03-18 Thread Jonathan Nieder
Hi, Ævar Arnfjörð Bjarmason wrote: > --- a/Documentation/git-gc.txt > +++ b/Documentation/git-gc.txt > @@ -41,10 +41,20 @@ OPTIONS > --aggressive:: > Usually 'git gc' runs very quickly while providing good disk > space utilization and performance. This option will cause > - 'git

Re: [PATCH v8 10/11] sequencer.c: define describe_cleanup_mode

2019-03-18 Thread Eric Sunshine
On Sun, Mar 17, 2019 at 6:16 AM Denton Liu wrote: > Define a function which allows us to get the string configuration value > of a enum commit_msg_cleanup_mode. This is done by refactoring > get_cleanup_mode such that it uses a lookup table to find the mappings > between string and enum and then u

Re: [PATCH v3 10/21] checkout: split part of it to new command 'switch'

2019-03-18 Thread Elijah Newren
On Sun, Mar 17, 2019 at 7:03 PM Junio C Hamano wrote: > > Elijah Newren writes: > > > I don't see why even makes sense to use with --orphan; > > you should error if both are given, IMO. The point of --orphan is to > > create some entirely new history. So, I'd expect "git switch --orphan > > "

Re: [PATCH] git-diff.txt: prefer not using ..

2019-03-18 Thread Ævar Arnfjörð Bjarmason
On Mon, Mar 18 2019, Elijah Newren wrote: > On Sun, Mar 17, 2019 at 6:41 AM Ævar Arnfjörð Bjarmason > wrote: >> On Sun, Mar 17 2019, Denton Liu wrote: >> >> > diff --git a/Documentation/git-diff.txt b/Documentation/git-diff.txt >> > index 72179d993c..10c7a2220c 100644 >> > --- a/Documentation/g

Re: Deprecating git diff ..; dealing with other ranges

2019-03-18 Thread Elijah Newren
On Mon, Mar 18, 2019 at 10:11 AM Michal Suchánek wrote: > > On Mon, 18 Mar 2019 10:07:08 -0700 > Elijah Newren wrote: > > > On Tue, Mar 12, 2019 at 2:01 PM Ævar Arnfjörð Bjarmason > > wrote: > > > On Tue, Mar 12 2019, Andreas Schwab wrote: > > > > On Mär 12 2019, Junio C Hamano wrote: > > > > >

Re: git p4 sync not reflecting mail address changes

2019-03-18 Thread Mazo, Andrey
> > Hello, > > we are periodically doing a 'git p4 sync' on a p4 clone that was initially > created by 'git p4 clone --bare //DEPOT'. Now on P4 side the mail addresses > have > changed, but git still uses the old addresses. > p4 users already shows the new addresses but new changes in the git lo

Re: [PATCH] git-diff.txt: prefer not using ..

2019-03-18 Thread Elijah Newren
Hi Denton, Thanks for working on this. Some thoughts... On Sun, Mar 17, 2019 at 4:09 AM Denton Liu wrote: > > The documentation used to consider > > git diff > > and > > git diff .. > > to be equal counterparts. However, rev-list-ish commands also use the > .. notation, but in

Re: Deprecating git diff ..; dealing with other ranges

2019-03-18 Thread Ævar Arnfjörð Bjarmason
On Mon, Mar 18 2019, Elijah Newren wrote: > On Tue, Mar 12, 2019 at 2:01 PM Ævar Arnfjörð Bjarmason > wrote: >> On Tue, Mar 12 2019, Andreas Schwab wrote: >> > On Mär 12 2019, Junio C Hamano wrote: >> > >> >> I however think it may be worth making sure that our docs do not >> >> encourage "dif

Re: [PATCH v1 1/1] trace2: NULL is not allowed for va_list

2019-03-18 Thread Morten Welinder
> And I couldn't find any hints that va_list and pointers can be mixed, > and no hints that they can't either C99, Section 7.15, simply says that it "is an object type suitable for holding information needed by the macros va_start, va_end, and va_copy". So clearly not guaranteed to be mixable wit

fast-import should fail on invalid unsupported paths

2019-03-18 Thread Björn Kautler
Hi, with this simple recipe, you get a non-usable repository: mkdir foo cd foo git init --bare repo cd repo git fast-import <<"EOM" commit refs/heads/master committer 0 + data 3 foo M 644 inline foo/.git/bar data 3 baz EOM cd .. git clone repo worktree This actually happened when a user tri

Re: [PATCH] git-diff.txt: prefer not using ..

2019-03-18 Thread Elijah Newren
On Sun, Mar 17, 2019 at 6:41 AM Ævar Arnfjörð Bjarmason wrote: > On Sun, Mar 17 2019, Denton Liu wrote: > > > diff --git a/Documentation/git-diff.txt b/Documentation/git-diff.txt > > index 72179d993c..10c7a2220c 100644 > > --- a/Documentation/git-diff.txt > > +++ b/Documentation/git-diff.txt > > @

Re: Deprecating git diff ..; dealing with other ranges

2019-03-18 Thread Michal Suchánek
On Mon, 18 Mar 2019 10:07:08 -0700 Elijah Newren wrote: > On Tue, Mar 12, 2019 at 2:01 PM Ævar Arnfjörð Bjarmason > wrote: > > On Tue, Mar 12 2019, Andreas Schwab wrote: > > > On Mär 12 2019, Junio C Hamano wrote: > > > > > >> I however think it may be worth making sure that our docs do not

Re: Deprecating git diff ..; dealing with other ranges

2019-03-18 Thread Elijah Newren
On Tue, Mar 12, 2019 at 2:01 PM Ævar Arnfjörð Bjarmason wrote: > On Tue, Mar 12 2019, Andreas Schwab wrote: > > On Mär 12 2019, Junio C Hamano wrote: > > > >> I however think it may be worth making sure that our docs do not > >> encourage "diff A..B" and teach "diff A B" when comparing two > >> e

Re: [PATCH v4 12/26] checkout: split part of it to new command 'switch'

2019-03-18 Thread Elijah Newren
On Sun, Mar 17, 2019 at 5:50 AM Nguyễn Thái Ngọc Duy wrote: > > "git checkout" doing too many things is a source of confusion for many > users (and it even bites old timers sometimes). To remedy that, the > command will be split into two new ones: switch and restore. The good > old "git checkout"

Re: GSoC 2019: Git's application submitted

2019-03-18 Thread Christian Couder
On Mon, Mar 18, 2019 at 1:52 PM Duy Nguyen wrote: > > On Mon, Feb 4, 2019 at 4:17 PM Christian Couder > wrote: > > Anyway feel free to comment and suggest improvements on those pages, > > especially the micro-projects and ideas one. Pull requests on > > https://github.com/git/git.github.io/ are

[PATCH 2/4] gc docs: include the "gc.*" section from "config" in "gc"

2019-03-18 Thread Ævar Arnfjörð Bjarmason
Rather than duplicating the documentation for the various "gc" options let's include the "gc" docs from git-config. They were mostly better already, and now we don't have the same docs in two places with subtly different wording. In the cases where the git-gc(1) docs were saying something the "gc"

[PATCH 1/4] gc docs: modernize the advice for manually running "gc"

2019-03-18 Thread Ævar Arnfjörð Bjarmason
The docs have been recommending that users need to run this manually, but that hasn't been needed in practice for a long time. Let's instead have this reflect reality and say that most users don't need to run this manually at all. Signed-off-by: Ævar Arnfjörð Bjarmason --- Documentation/git-gc.

[PATCH 0/4] gc docs: modernize and fix the documentation

2019-03-18 Thread Ævar Arnfjörð Bjarmason
I've been annoyed by the "gc" docs for a while. This fixes most of the issues I've noticed, and also removes the duplication between the "gc" variables in git-config(1) and in git-gc(1), which was made possible by Duy's Documentation/config/* series. This should make the "gc" docs more awesome, an

[PATCH 4/4] gc docs: downplay the usefulness of --aggressive

2019-03-18 Thread Ævar Arnfjörð Bjarmason
The existing "gc --aggressive" docs come just short of recommending to users that they run it regularly. In reality it's a waste of CPU for most users, and may even make things actively worse. I've personally talked to many users who've taken these docs as an advice to use this option, and have. L

[PATCH 3/4] gc docs: de-duplicate "OPTIONS" and "CONFIGURATION"

2019-03-18 Thread Ævar Arnfjörð Bjarmason
In an earlier commit I started including the "gc.*" documentation from git-config(1) in the git-gc(1) documentation. That still left us in a state where the "--auto" option and "gc.auto" were redundantly discussing the same thing. Fix that by briefly discussing how the option itself works for "--a

Re: [PATCH v1 1/1] trace2: NULL is not allowed for va_list

2019-03-18 Thread Torsten Bögershausen
On Mon, Mar 18, 2019 at 08:35:26AM -0400, Jeff Hostetler wrote: > > > On 3/16/2019 6:47 AM, tbo...@web.de wrote: > > From: Torsten Bögershausen > > > > Some compilers don't allow NULL to be passed for a va_list. > > Use va_list instead. > > > > Signed-off-by: Torsten Bögershausen > > Thanks for t

Re: [PATCH 2/3] midx: verify: group objects by packfile to speed up object verification

2019-03-18 Thread Ævar Arnfjörð Bjarmason
On Mon, Mar 18 2019, Jeff Hostetler via GitGitGadget wrote: > +static int compare_pair_pos_vs_id(const void *_a, const void *_b) > +{ > + struct pair_pos_vs_id *a = (struct pair_pos_vs_id *)_a; > + struct pair_pos_vs_id *b = (struct pair_pos_vs_id *)_b; > + > + if (a->pack_int_id < b

Re: [PATCH v2] unpack-trees: fix oneway_merge accidentally carry over stage index

2019-03-18 Thread Elijah Newren
On Mon, Mar 18, 2019 at 4:38 AM Nguyễn Thái Ngọc Duy wrote: > > Phillip found out that 'git checkout -f ' does not restore > conflict/unmerged files correctly. All tracked files should be taken > from and all non-zero stages removed. Most of this is true, > except that the final file could be in

Re: [PATCH] t4038-diff-combined: quote paths with whitespace

2019-03-18 Thread Elijah Newren
On Sun, Mar 17, 2019 at 4:02 PM Todd Zullinger wrote: > > d76ce4f734 ("log,diff-tree: add --combined-all-paths option", > 2019-02-07) added tests for files containing tabs. > > When the tests are run with bash, the lack of quoting during the file > setup causes 'ambiguous redirect' errors. > > Sig

[PATCH 3/3] trace2:data: add trace2 data to midx

2019-03-18 Thread Jeff Hostetler via GitGitGadget
From: Jeff Hostetler Log multi-pack-index command mode. Log number of objects and packfiles in the midx. Signed-off-by: Jeff Hostetler --- builtin/multi-pack-index.c | 3 +++ midx.c | 4 2 files changed, 7 insertions(+) diff --git a/builtin/multi-pack-index.c b/builti

[PATCH 2/3] midx: verify: group objects by packfile to speed up object verification

2019-03-18 Thread Jeff Hostetler via GitGitGadget
From: Jeff Hostetler Teach `multi-pack-index verify` to sort the set of objects by packfile so that only one packfile needs to be open at a time. This is a performance improvement. Previously, objects were verified in OID order. This essentially requires all packfiles to be open at the same ti

[PATCH 1/3] midx: verify: add midx packfiles to the packed_git list

2019-03-18 Thread Jeff Hostetler via GitGitGadget
From: Jeff Hostetler Fix "git multi-pack-index verify" to handle repos with thousands of packfiles. Midx verify adds the individual "packed_git" structures to the multi_pack_index.packs array, but it does not add them to the "repository.objects.packed_git" list. During the verification code, ea

[PATCH 0/3] multi-pack-index: fix verify on large repos

2019-03-18 Thread Jeff Hostetler via GitGitGadget
Teach "multi-pack-index verify" to handle cases where the number of packfiles exceeds the open file handle limit. The first commit fixes a problem that prevented the LRU-style close_one_pack() mechanism from working which caused midx verify to run out of file descriptors. The second commit teache

Re: GSoC 2019: Git's application submitted

2019-03-18 Thread Duy Nguyen
On Mon, Feb 4, 2019 at 4:17 PM Christian Couder wrote: > > Hi everyone, > > There are now ideas, micro-projects and organization application pages > for GSoC 2019 on https://git.github.io/ > > It would be nice to have a few more project ideas. > https://git.github.io/SoC-2019-Ideas/ currently list

Re: [PATCH 0/2] Randomize / timestamp trace2 targets

2019-03-18 Thread Jeff Hostetler
On 3/15/2019 4:38 PM, Josh Steadmon wrote: On 2019.03.15 15:18, Jeff Hostetler wrote: On 3/13/2019 7:33 PM, Josh Steadmon wrote: Persistently enabling trace2 output is difficult because it requires specifying a full filename. This series teaches tr2_dst_get_trace_fd() to randomize filename

Re: [PATCH v1 1/1] trace2: NULL is not allowed for va_list

2019-03-18 Thread Jeff Hostetler
On 3/16/2019 6:47 AM, tbo...@web.de wrote: From: Torsten Bögershausen Some compilers don't allow NULL to be passed for a va_list. Use va_list instead. Signed-off-by: Torsten Bögershausen Thanks for the fixup. For future reference, can you elaborate on which compiler and/or platform has

git p4 sync not reflecting mail address changes

2019-03-18 Thread Massimo Burcheri
Hello, we are periodically doing a 'git p4 sync' on a p4 clone that was initially created by 'git p4 clone --bare //DEPOT'. Now on P4 side the mail addresses have changed, but git still uses the old addresses. p4 users already shows the new addresses but new changes in the git log are showing the

Re: [PATCH v4 00/26] Add new command 'switch'

2019-03-18 Thread Duy Nguyen
On Mon, Mar 18, 2019 at 11:54 AM Junio C Hamano wrote: > I often find "git reset --hard " after a It still bugs me that I need to use this to abort some in-progress operation. There's "git X --abort" but I would need to find out what X is first. I would like "git abort" or something (and "git con

Re: [PATCH v9 3/3] branch: add worktree info on verbose output

2019-03-18 Thread SZEDER Gábor
On Fri, Mar 15, 2019 at 06:38:07PM -0700, nbelakov...@gmail.com wrote: > diff --git a/t/t3203-branch-output.sh b/t/t3203-branch-output.sh > index ceb74e0826..e5dc23e225 100755 > --- a/t/t3203-branch-output.sh > +++ b/t/t3203-branch-output.sh > @@ -328,4 +328,23 @@ test_expect_success '--color overr

Re: [PATCH v3 10/21] checkout: split part of it to new command 'switch'

2019-03-18 Thread Duy Nguyen
On Mon, Mar 18, 2019 at 9:03 AM Junio C Hamano wrote: > > Elijah Newren writes: > > > I don't see why even makes sense to use with --orphan; > > you should error if both are given, IMO. The point of --orphan is to > > create some entirely new history. So, I'd expect "git switch --orphan > > "

[PATCH v2] unpack-trees: fix oneway_merge accidentally carry over stage index

2019-03-18 Thread Nguyễn Thái Ngọc Duy
Phillip found out that 'git checkout -f ' does not restore conflict/unmerged files correctly. All tracked files should be taken from and all non-zero stages removed. Most of this is true, except that the final file could be in stage one instead of zero. "checkout -f" (among other commands) does t

Re: [PATCH 0/2] Fix fsmonitor after discard_index()

2019-03-18 Thread Ævar Arnfjörð Bjarmason
On Sat, Mar 16 2019, Johannes Schindelin via GitGitGadget wrote: > It was reported by Ævar Arnfjörð Bjarmason > [https://public-inbox.org/git/nycvar.qro.7.76.6.1903142058130...@tvgsbejvaqbjf.bet/T/#mb8718fe52e4721dacd3b143a09187ff9090ef4e3] > that there were problems with the fsmonitor feature i

[PATCH v4] rebase: remove the rebase.useBuiltin setting

2019-03-18 Thread Ævar Arnfjörð Bjarmason
Remove the rebase.useBuiltin setting, which was added as an escape hatch to disable the builtin version of rebase first released with Git 2.20. See [1] for the initial implementation of rebase.useBuiltin, and [2] and [3] for the documentation and corresponding GIT_TEST_REBASE_USE_BUILTIN option.

Re: [PATCH v3] rebase: remove the rebase.useBuiltin setting

2019-03-18 Thread Phillip Wood
Hi Ævar Thanks for doing this, it's great to see it from a maintenance perspective as well as it meaning the builtin rebase is considered stable. A couple small nit picks below On 15/03/2019 13:45, Ævar Arnfjörð Bjarmason wrote: Remove the rebase.useBuiltin setting, which was added as an esc

Re: "man gitattributes" doesn't explain comma-separated attribute values

2019-03-18 Thread Philip Oakley
On 17/03/2019 08:18, Johannes Sixt wrote: Am 16.03.19 um 23:09 schrieb Robert P. J. Day: On Sat, 16 Mar 2019, Johannes Sixt wrote: Am 16.03.19 um 13:22 schrieb Robert P. J. Day: as a working example, i looked at the top-level .gitattributes file in the git source code itself, which opens w

Re: [PATCH v2 1/4] git: read local config in --list-cmds

2019-03-18 Thread Duy Nguyen
On Mon, Mar 18, 2019 at 1:16 AM Todd Zullinger wrote: > > From: Jeff King > > Normally code that is checking config before we've decided to do > setup_git_directory() would use read_early_config(), which uses > discover_git_directory() to tentatively see if we're in a repo, > and if so to add it

Re: [PATCH] unpack-trees: fix oneway_merge accidentally carry over stage index

2019-03-18 Thread Junio C Hamano
Duy Nguyen writes: >> > + test_cmp_rev :1:a $A_OBJ && >> > + test_cmp_rev :2:a $B_OBJ && >> > + test_cmp_rev :3:a $C_OBJ && >> > + git checkout -f topic && >> > + test_cmp_rev :a $A_OBJ >> >> So in short, "checkout -f" should have given us an entry for path >> "a", taken from

Re: [PATCH] unpack-trees: fix oneway_merge accidentally carry over stage index

2019-03-18 Thread Duy Nguyen
On Mon, Mar 18, 2019 at 10:58 AM Junio C Hamano wrote: > > Nguyễn Thái Ngọc Duy writes: > > > One-way merge is supposed to take stat info from the index and > > everything else from the given tree. This implies stage 0 because trees > > can't have non-zero stages. The add_entry(.., old, ...) cal

Re: [PATCH] doc: fix typos in man pages

2019-03-18 Thread Alexander Blesius
On 18/03/2019 06:42, Junio C Hamano wrote: >> diff --git a/Documentation/gitattributes.txt >> b/Documentation/gitattributes.txt >> index 9b41f81c06..908d9a3009 100644 >> --- a/Documentation/gitattributes.txt >> +++ b/Documentation/gitattributes.txt >> @@ -314,8 +314,8 @@ stored as UTF-8 internally.

Re: [PATCH v8 00/11] Fix scissors bug during conflict

2019-03-18 Thread Junio C Hamano
Denton Liu writes: >> > Here you could swap the order of when you write to 'act' and 'tmp', >> > and thus make the 'mv' unnecessary, like this: >> > >> > git commit [...] >tmp && >> > head -1 act >tmp && >> > [...rest of the test...] >> > >> > Note also that 'head' (or 'sed' in later tests)

Re: [GSoC][PATCH v3 3/3] t0000: use test_line_count instead of wc -l

2019-03-18 Thread Junio C Hamano
Ævar Arnfjörð Bjarmason writes: > No objections to changing this, but I don't think it's the fault of a > commit message if someone reading it doesn't get an explanation for a > future unrelated improvement. > > The times when a commit should have such an explanation are cases like > e.g. introdu

Re: separating regression test patches from fixes, was Re: [PATCH 3/3] cherry-pick --continue: remember options

2019-03-18 Thread Junio C Hamano
Duy Nguyen writes: > One of the problems I > have with separating tests from the actual code change is the > description of the problem often stays on the test commit, which I > can't see in git-log if I'm searching for the code change. In the message you are reponding to, Dscho made it sou

Re: [PATCH v8 00/11] Fix scissors bug during conflict

2019-03-18 Thread Denton Liu
Hi Junio, On Mon, Mar 18, 2019 at 03:35:56PM +0900, Junio C Hamano wrote: > SZEDER Gábor writes: > > >> + git commit ${3+"$3"} -m "$2" >act && > >> + head -1 tmp && > >> + mv tmp act && > > > > Here you could swap the order of when you write to 'act' and 'tmp', > > and thus make the 'mv' unne

Re: [GSoC][PATCH v3 3/3] t0000: use test_line_count instead of wc -l

2019-03-18 Thread Ævar Arnfjörð Bjarmason
On Sun, Mar 17 2019, Thomas Gummerer wrote: > On 03/17, Ævar Arnfjörð Bjarmason wrote: >> >> On Sun, Mar 17 2019, Jonathan Chang wrote: >> >> > Signed-off-by: Jonathan Chang >> > --- >> > t/t-basic.sh | 7 +++ >> > 1 file changed, 3 insertions(+), 4 deletions(-) >> > >> > diff --git a/

Re: What's cooking in git.git (Mar 2019, #01; Wed, 6)

2019-03-18 Thread Junio C Hamano
Johannes Schindelin writes: >> "gir rebase" that was reimplemented in C did not set ORIG_HEAD > > s/gir/git/ (assuming that you use these descriptions to generate the > announcement mails?) Thanks.

Re: [PATCH] doc: fix typos in man pages

2019-03-18 Thread Junio C Hamano
Alexander Blesius writes: > Signed-off-by: Alexander Blesius > --- > Documentation/git-worktree.txt | 4 ++-- > Documentation/gitattributes.txt | 4 ++-- > 2 files changed, 4 insertions(+), 4 deletions(-) > > diff --git a/Documentation/git-worktree.txt b/Documentation/git-worktree.txt > index

Re: [PATCH] send-email: don't cc *-by lines with '-' prefix

2019-03-18 Thread Joe Perches
On Mon, 2019-03-18 at 15:28 +0900, Junio C Hamano wrote: > Joe Perches writes: > > > My preference would be for correctness. > > I presume something like this isn't too onerous. > > I am guessing that /^---/ is to stop at the three-dash line *OR* > after the initial handful of lines of the first

Re: [PATCH 0/2] stash: handle pathspec magic again

2019-03-18 Thread Junio C Hamano
Junio C Hamano writes: > Johannes Schindelin writes: > >> Fine. But in that case, I would appreciate not being reminded of the >> messiness. Not unless you let me do something about it. Don't put me >> between a rock and a hard place, please. Perhaps your attitude is coming from a fundamental m