Re: [PATCH] ls-files: use correct format string

2019-04-10 Thread Jeff King
On Sun, Apr 07, 2019 at 07:47:51PM +0100, Thomas Gummerer wrote: > struct stat_data and struct cache_time both use unsigned ints for all > their members. However the format string for 'git ls-files --debug' > currently uses %d for formatting these numbers. This means that we > potentially print

Re: [PATCH v3] rev-list: exclude promisor objects at walk time

2019-04-10 Thread Jeff King
On Tue, Apr 09, 2019 at 04:42:55PM -0700, Josh Steadmon wrote: > > warning: reflog of 'HEAD' references pruned commits > > warning: reflog of 'refs/heads/master' references pruned commits > > fatal: unable to read 71905dfcd543b7cbb0b4b66fbd20379e67220557 > > error: last command exited with

Local Config File: Submodule initialization looks broken with the --recurse-submodules option when cloning a repository

2019-04-10 Thread ron
Initially reported for GFW on version 2.20.1, I have tested with Linux Mint Mate 19.1 Tessa which by default uses git version 2.17.1 It produces a config file with the relevant submodule entries looking like this: [submodule] active = . [submodule "Submodule/Path"]

Git merge should report an actual syntax error when a semicolon is used instead of space for specifying multiple branches

2019-04-10 Thread ron
First time reporting a bug :) or at least what I think it may be. There's a few similar cases I think I've seen in the past, but the one I'm sure about is the semicolon instead of space between multiple branches, that should be a syntax error if git merge can't accept that command .. if the peop

Re: [PATCH v3 00/33] nd/sha1-name-c-wo-the-repository updates

2019-04-10 Thread Duy Nguyen
On Thu, Apr 11, 2019 at 3:56 AM Johannes Schindelin wrote: > > @@ > > + expression c; > > ++expression r; > > + expression s; > > + @@ > > +-- get_commit_tree(c) = s > > ++- repo_get_commit_tree(r, c) = s > > + + c->maybe_tree = s > > I think this is wrong, and ad

[PATCH] send-email: default to quoted-printable when CR is present

2019-04-10 Thread brian m. carlson
In 7a36987fff ("send-email: add an auto option for transfer encoding", 2018-07-08), git send-email learned how to automatically determine the transfer encoding for a patch. However, the only criterion considered was the length of the lines. Another case we need to consider is that of carriage retu

Re: [PATCH v3] repack: enable bitmaps by default on bare repos

2019-04-10 Thread Jeff King
On Tue, Apr 09, 2019 at 05:10:43PM +0200, Ævar Arnfjörð Bjarmason wrote: > I've found a case where turning bitmaps on does horrible things for > bitmap "push" performance. > [...] > I can't share the repo, but I had a report where just a "git push" of a > topic branch that was 2/58 ahead/behind to

Re: [PATCH 1/1] send-email: fix transferencoding config option

2019-04-10 Thread brian m. carlson
On Wed, Apr 10, 2019 at 10:40:51PM +0200, Heinrich Schuchardt wrote: > Sounds reasonable. But including the tests requested nothing I could > easily shoulder. > > Just a quite different thought: > > 'auto' should discover a safe transfer encoding. Why does 'auto' not > discover that a patch conta

jh/trace2-sid-fix, was Re: What's cooking in git.git (Apr 2019, #02; Wed, 10)

2019-04-10 Thread Johannes Schindelin
Hi Junio, On Wed, 10 Apr 2019, Junio C Hamano wrote: > * jh/trace2-sid-fix (2019-04-01) 7 commits > - trace2: make SIDs more unique > - trace2: clarify UTC datetime formatting > - trace2: report peak memory usage of the process > - trace2: use system config for default trace2 settings > - tr

Re: What's cooking in git.git (Apr 2019, #02; Wed, 10)

2019-04-10 Thread Johannes Schindelin
Hi Phillip, On Wed, 10 Apr 2019, Phillip Wood wrote: > On 09/04/2019 19:08, Junio C Hamano wrote: > > Here are the topics that have been cooking. Commits prefixed with > > '-' are only in 'pu' (proposed updates) while commits prefixed with > > '+' are in 'next'. The ones marked with '.' do not

Re: What's cooking in git.git (Apr 2019, #02; Wed, 10)

2019-04-10 Thread Johannes Schindelin
Hi, On Wed, 10 Apr 2019, Junio C Hamano wrote: > Thomas Gummerer writes: > > > On 04/10, Junio C Hamano wrote: > > > >> * tg/stash-in-c-show-default-to-p-fix (2019-03-21) 1 commit > >> (merged to 'next' on 2019-04-10 at 9489a31a36) > >> + stash: setup default diff output format if necessary >

dl/warn-tagging-a-tag, was Re: What's cooking in git.git (Apr 2019, #02; Wed, 10)

2019-04-10 Thread Johannes Schindelin
Hi Junio, On Wed, 10 Apr 2019, Junio C Hamano wrote: > * dl/warn-tagging-a-tag (2019-04-09) 2 commits > - tag: advise on nested tags > - tag: fix formatting > > "git tag" learned to give an advice suggesting it might be a > mistake when creating an annotated or signed tag that points at > an

nd/switch-and-restore, was Re: What's cooking in git.git (Apr 2019, #02; Wed, 10)

2019-04-10 Thread Johannes Schindelin
Hi Junio, On Wed, 10 Apr 2019, Junio C Hamano wrote: > * nd/switch-and-restore (2019-04-02) 39 commits > - doc: promote "git restore" > - completion: support restore > - SQUASH??? move -p test to 2071 from 2070 > - t: add tests for restore > - restore: support --patch > - restore: default t

Re: [PATCH v3 00/33] nd/sha1-name-c-wo-the-repository updates

2019-04-10 Thread Johannes Schindelin
Hi Duy, On Sat, 6 Apr 2019, Nguyễn Thái Ngọc Duy wrote: > 10: 68876a150f ! 11: 848456f59c commit.c: add repo_get_commit_tree() > @@ -2,6 +2,11 @@ > > commit.c: add repo_get_commit_tree() > > +Remove the implicit dependency on the_repository in this function. > +It w

Re: What's cooking in git.git (Apr 2019, #02; Wed, 10)

2019-04-10 Thread Thomas Gummerer
On 04/10, Junio C Hamano wrote: > Thomas Gummerer writes: > > > On 04/10, Junio C Hamano wrote: > > > >> * tg/stash-in-c-show-default-to-p-fix (2019-03-21) 1 commit > >> (merged to 'next' on 2019-04-10 at 9489a31a36) > >> + stash: setup default diff output format if necessary > >> (this branc

Re: [PATCH 1/1] send-email: fix transferencoding config option

2019-04-10 Thread Heinrich Schuchardt
On 4/10/19 5:48 AM, Junio C Hamano wrote: Jonathan Nieder writes: nit: I was confused when first reading this, since I read "the configuration $target_xfer_encoding" as a single phrase. A comma after "configuration" might help. ... run-on sentence. I'm having trouble parsing this part. I h

Re: [GSoC][PATCH v5 3/7] dir-iterator: add flags parameter to dir_iterator_begin

2019-04-10 Thread Matheus Tavares Bernardino
Hi, Thomas Sorry for the late reply, but now that I submitted my GSoC proposal I can finally come back to this series. On Sun, Mar 31, 2019 at 3:12 PM Thomas Gummerer wrote: > > On 03/30, Matheus Tavares wrote: > > Add the possibility of giving flags to dir_iterator_begin to initialize > > a dir

Re: [RFC PATCH 08/11] rebase -i: use struct rebase_options to parse args

2019-04-10 Thread Phillip Wood
Hi Alban sorry for the slow reply, I think you're probably off-list for a while by now On 21/03/2019 21:13, Alban Gruin wrote: Hi Phillip, It’s nice to see your work on this on the list. Le 19/03/2019 à 20:03, Phillip Wood a écrit : From: Phillip Wood In order to run `rebase -i` without

Re: [PATCH v6 1/6] Move init_skiplist() outside of fsck

2019-04-10 Thread Ævar Arnfjörð Bjarmason
On Wed, Apr 10 2019, Barret Rhoden wrote: > init_skiplist() took a file consisting of SHA-1s and comments and added > the objects to an oidset. This functionality is useful for other > commands. This change would be much easier to review if you led with a commit where you s/Invalid SHA-1/inval

Re: [PATCH v6 3/6] blame: add the ability to ignore commits and their changes

2019-04-10 Thread Ævar Arnfjörð Bjarmason
On Wed, Apr 10 2019, Barret Rhoden wrote: (Just skimming) > revisions for commits that perform mass reformatting, and their users > have the optional to ignore all of the commits in that file. s/have the optional/have the option/ > +--ignore-revs-file :: > + Ignore revisions listed in `fi

Re: What's cooking in git.git (Apr 2019, #02; Wed, 10)

2019-04-10 Thread Mazo, Andrey
> * am/p4-branches-excludes (2019-04-02) 8 commits > - git-p4: respect excluded paths when detecting branches > - git-p4: add failing test for "git-p4: respect excluded paths when > detecting branches" > - git-p4: don't exclude other files with same prefix > - git-p4: add failing test for "don

[PATCH 04/11] built-in add -i: refresh the index before running `status`

2019-04-10 Thread Johannes Schindelin via GitGitGadget
From: Johannes Schindelin This is what the Perl version does, and therefore it is what the built-in version should do, too. Signed-off-by: Johannes Schindelin --- add-interactive.c | 4 +++- repository.c | 19 +++ repository.h | 7 +++ 3 files changed, 29 insert

[PATCH 11/11] built-in add -i: implement the `help` command

2019-04-10 Thread Johannes Schindelin via GitGitGadget
From: Johannes Schindelin This imitates the code to show the help text from the Perl script `git-add--interactive.perl` in the built-in version. To make sure that it renders exactly like the Perl version of `git add -i`, we also add a test case for that to `t3701-add-interactive.sh`. Signed-off

[PATCH 08/11] built-in add -i: show unique prefixes of the commands

2019-04-10 Thread Slavica Djukic via GitGitGadget
From: Slavica Djukic Just like in the Perl script `git-add--interactive.perl`, for each command a unique prefix is determined (if there exists any within the given parameters), and shown in the list, and accepted as a shortcut for the command. We use the prefix map implementation that we just ad

[PATCH 10/11] built-in add -i: use color in the main loop

2019-04-10 Thread Slavica Djukic via GitGitGadget
From: Slavica Djukic The error messages as well as the unique prefixes are colored in `git add -i` by default; We need to do the same in the built-in version. Signed-off-by: Slavica Djukic Signed-off-by: Johannes Schindelin --- add-interactive.c | 40 +++-

[PATCH 07/11] Add a function to determine unique prefixes for a list of strings

2019-04-10 Thread Slavica Djukic via GitGitGadget
From: Slavica Djukic In the `git add -i` command, we show unique prefixes of the commands and files, to give an indication what prefix would select them. Naturally, the C implementation looks a lot different than the Perl implementation: in Perl, a trie is much easier implemented, while we alrea

[PATCH 09/11] built-in add -i: support `?` (prompt help)

2019-04-10 Thread Johannes Schindelin via GitGitGadget
From: Johannes Schindelin With this change, we print out the same colored help text that the Perl-based `git add -i` prints in the main loop when question mark is entered. Signed-off-by: Johannes Schindelin --- add-interactive.c | 24 +++- 1 file changed, 23 insertions(+),

[PATCH 05/11] built-in add -i: color the header in the `status` command

2019-04-10 Thread Johannes Schindelin via GitGitGadget
From: Johannes Schindelin For simplicity, we only implemented the `status` command without colors. This patch starts adding color, matching what the Perl script `git-add--interactive.perl` does. Original-Patch-By: Daniel Ferreira Signed-off-by: Slavica Djukic Signed-off-by: Johannes Schindelin

[PATCH 06/11] built-in add -i: implement the main loop

2019-04-10 Thread Johannes Schindelin via GitGitGadget
From: Johannes Schindelin The reason why we did not start with the main loop to begin with is that it is the first user of `list_and_choose()`, which uses the `list()` function that we conveniently introduced for use by the `status` command. Apart from the "and choose" part, there are more diffe

[PATCH 03/11] built-in add -i: implement the `status` command

2019-04-10 Thread Daniel Ferreira via GitGitGadget
From: Daniel Ferreira This implements the `status` command of `git add -i`. The data structures introduced in this commit will be extended as needed later. At this point, we re-implement only part of the `list_and_choose()` function of the Perl script `git-add--interactive.perl` and call it `lis

[PATCH 02/11] diff: export diffstat interface

2019-04-10 Thread Daniel Ferreira via GitGitGadget
From: Daniel Ferreira Make the diffstat interface (namely, the diffstat_t struct and compute_diffstat) no longer be internal to diff.c and allow it to be used by other parts of git. This is helpful for code that may want to easily extract information from files using the diff machinery, while fl

[PATCH 01/11] Start to implement a built-in version of `git add --interactive`

2019-04-10 Thread Johannes Schindelin via GitGitGadget
From: Johannes Schindelin This is hardly the first conversion of a Git command that is implemented as a script to a built-in. So far, the most successful strategy for such conversions has been to add a built-in helper and call that for more and more functionality from the script, as more and more

[PATCH 00/11] git add -i: add a rudimentary version in C (supporting only status and help so far)

2019-04-10 Thread Johannes Schindelin via GitGitGadget
This is the first leg on the long journey to a fully built-in git add -i (next up: parts 2 [https://github.com/gitgitgadget/git/pull/171], 3 [https://github.com/gitgitgadget/git/pull/172], 4 [https://github.com/gitgitgadget/git/pull/173], 5 [https://github.com/gitgitgadget/git/pull/174], and 6 [ht

Re: repeated empty section in config of repository

2019-04-10 Thread Elijah Newren
On Wed, Apr 10, 2019 at 9:08 AM Kurt Ablinger wrote: > > Hello, > > I am not sure if this can be problem - at least it is proably not correct: > > when adding a key to an empty section and deleting the key so that the > section is empty again, > every add adds the section-name again - example: >

[PATCH v6 0/6] blame: add the ability to ignore commits

2019-04-10 Thread Barret Rhoden
This patch set adds the ability to ignore a set of commits and their changes when blaming. This can be used to ignore a commit deemed 'not interesting,' such as reformatting. The last patch in the series changes the heuristic by which ignored lines are attributed to specific lines in the parent c

[PATCH v6 6/6] blame: use a fingerprint heuristic to match ignored lines

2019-04-10 Thread Barret Rhoden
This replaces the heuristic used to identify lines from ignored commits with one that finds likely candidate lines in the parent's version of the file. The old heuristic simply assigned lines in the target to the same line number (plus offset) in the parent. The new function uses a fingerprinting

[PATCH v6 5/6] blame: optionally track line fingerprints during fill_blame_origin()

2019-04-10 Thread Barret Rhoden
fill_blame_origin() is a convenient place to store data that we will use throughout the lifetime of a blame_origin. Some heuristics for ignoring commits during a blame session can make use of this storage. In particular, we will calculate a fingerprint for each line of a file for blame_origins inv

[PATCH v6 1/6] Move init_skiplist() outside of fsck

2019-04-10 Thread Barret Rhoden
init_skiplist() took a file consisting of SHA-1s and comments and added the objects to an oidset. This functionality is useful for other commands. Signed-off-by: Barret Rhoden --- fsck.c | 37 + oidset.c| 35 ++

[PATCH v6 2/6] blame: use a helper function in blame_chunk()

2019-04-10 Thread Barret Rhoden
The same code for splitting a blame_entry at a particular line was used twice in blame_chunk(), and I'll use the helper again in an upcoming patch. Signed-off-by: Barret Rhoden --- blame.c | 44 1 file changed, 28 insertions(+), 16 deletions(-) diff

[PATCH v6 4/6] blame: add config options to handle output for ignored lines

2019-04-10 Thread Barret Rhoden
When ignoring commits, the commit that is blamed might not be responsible for the change. Users might want to know when a particular line has a potentially inaccurate blame. Furthermore, they might never want to see the object hash of an ignored commit. This patch adds two config options to cont

[PATCH v6 3/6] blame: add the ability to ignore commits and their changes

2019-04-10 Thread Barret Rhoden
Commits that make formatting changes or function renames are often not interesting when blaming a file. A user may deem such a commit as 'not interesting' and want to ignore and its changes it when assigning blame. For example, say a file has the following git history / rev-list: ---O---A---X---

Re: [PATCH 1/1] untracked cache: fix off-by-one

2019-04-10 Thread Jeff King
On Wed, Apr 10, 2019 at 05:56:48AM -0700, Johannes Schindelin via GitGitGadget wrote: > Probably in the endeavor to avoid the `calloc()` implied by > `FLEX_ALLOC_STR()` (it is hard to know why exactly, the commit message > of that commit is a bit parsimonious with information), it calls > `malloc

hej novi prijatelj nešto izazvao moj interes za vas. Želim stvoriti jedinstvenu komunikaciju s vama. Bit ću tako zaprepašten da čitam iz vašeg odgovora

2019-04-10 Thread Jessica

[PATCH] t3000 (ls-files -o): widen description to reflect current tests

2019-04-10 Thread Kyle Meyer
Remove the mention of symlinks from the test description because several tests that are not related to symlinks have been added since this file was introduced long ago. Signed-off-by: Kyle Meyer --- t/t3000-ls-files-others.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/

Re: [RFC PATCH] pack-objects: write objects packed to trace2

2019-04-10 Thread Jeff Hostetler
On 4/9/2019 5:44 PM, Jonathan Tan wrote: This is useful when investigating performance of pushes, and other times when no progress information is written (because the pack is written to stdout). Signed-off-by: Jonathan Tan --- We're trying to improve push performance, and it would be nice to

Re: repeated empty section in config of repository

2019-04-10 Thread SZEDER Gábor
On Wed, Apr 10, 2019 at 11:51:03AM +, Kurt Ablinger wrote: > Hello, > > I am not sure if this can be problem - at least it is proably not correct: > > when adding a key to an empty section and deleting the key so that the > section is empty again, > every add adds the section-name again - e

Re: [PATCH] test-lib: whitelist GIT_TR2_* in the environment

2019-04-10 Thread Jeff Hostetler
On 3/30/2019 3:51 AM, Ævar Arnfjörð Bjarmason wrote: Add GIT_TR2_* to the whitelist of environment variables that we don't clear when running the test suite. This allows us to use the test suite to produce trace2 test data, which is handy to e.g. write consumers that collate the trace data it

[PATCH 0/1] Fix an off-by-one bug in the untracked cache code

2019-04-10 Thread Johannes Schindelin via GitGitGadget
Frankly, I am surprised it took me this long to discover this bug, as I am running with the untracked cache for ages now. But as of recent, I am running more and more long-running commands, mostly rebases to keep what I call "ever-green" branches up to date, where Git for Windows' patch thicket is

[PATCH 1/1] untracked cache: fix off-by-one

2019-04-10 Thread Johannes Schindelin via GitGitGadget
From: Johannes Schindelin In f9e6c649589e (untracked cache: load from UNTR index extension, 2015-03-08), code was added to read back the untracked cache from an index extension. Probably in the endeavor to avoid the `calloc()` implied by `FLEX_ALLOC_STR()` (it is hard to know why exactly, the co

repeated empty section in config of repository

2019-04-10 Thread Kurt Ablinger
Hello, I am not sure if this can be problem - at least it is proably not correct: when adding a key to an empty section and deleting the key so that the section is empty again, every add adds the section-name again - example: git config gc.autoDetach false ; git config --unset gc.autoDetach ;

Re: regression AGAIN in output of git-pull --rebase --recurse-submodules=yes --quiet

2019-04-10 Thread Duy Nguyen
On Wed, Apr 10, 2019 at 06:41:05AM +, Robin H. Johnson wrote: > A year ago, I raised > as an issue, > which lead to commit commit a56771a668dd4963675914bc5da0e1e015952dae. > > The exact same workload somewhere between 2.18.0 and 2.19.0 has caused > the message to come back. I noticed it firs

Git subtree error on windows 10 with 2.21 version

2019-04-10 Thread Nicola Farina
Hi After upgrading to 2.21 issuing this subtree command: git subtree push --prefix ouverture Shared-Ouverture master I get these errors: C:/Program Files/Git/mingw64/libexec/git-core\git-subtree: line 636: /mingw64/libexec/git-core/git: No such file or directory C:/Program Files/Git/mingw64/li

Re: What's cooking in git.git (Apr 2019, #02; Wed, 10)

2019-04-10 Thread Phillip Wood
On 09/04/2019 19:08, Junio C Hamano wrote: Here are the topics that have been cooking. Commits prefixed with '-' are only in 'pu' (proposed updates) while commits prefixed with '+' are in 'next'. The ones marked with '.' do not appear in any of the integration branches, but I am still holding o

Re: [PATCH] Introduce "precious" file concept

2019-04-10 Thread Duy Nguyen
On Tue, Apr 9, 2019 at 6:31 PM Junio C Hamano wrote: > > @@ -193,9 +203,16 @@ static int remove_dirs(struct strbuf *path, const char > > *prefix, int force_flag, > > > > strbuf_setlen(path, len); > > strbuf_addstr(path, e->d_name); > > - if (lstat(path->buf

Re: [PATCH/docs] make slash-rules more readable

2019-04-10 Thread Dr. Adam Nielsen
> the pattern is matched against paths in the directory where the > `.gitignore` file that has the pattern in it is in, and any of > its subdirectories (recursively). > the pattern will match in all directories relative to > the `.gitignore` file, with infinite depth. I could not catch the differ