Re: [PATCH] Fix typos in translatable strings for v2.21.0

2019-02-11 Thread Jiang Xin
Jean-Noël Avila 于2019年2月11日周一 下午2:48写道: > > Signed-off-by: Jean-Noël Avila > --- > builtin/bisect--helper.c | 4 ++-- > builtin/fetch.c | 2 +- > builtin/rebase.c | 2 +- > 3 files changed, 4 insertions(+), 4 deletions(-) This re-roll is v2 (forgot suffix v2 in subject), and LG

Re: GSoC 2019: Git's application submitted

2019-02-11 Thread Christian Couder
On Thu, Feb 7, 2019 at 10:33 PM Thomas Gummerer wrote: > > On 02/07, Johannes Schindelin wrote: > > On Wed, 6 Feb 2019, Thomas Gummerer wrote: > > > - implement pushing/poping conflicted state > > > > > >This would obviously be the end goal. > > > > On second thought, this might actually be s

Re: GSoC 2019: Git's application submitted

2019-02-11 Thread Оля Тележная
пн, 11 февр. 2019 г. в 10:46, Christian Couder : > > On Mon, Feb 11, 2019 at 6:48 AM Оля Тележная wrote: > > > > > It would be nice to have a few more project ideas. > > > > I am not sure I have additional ideas for 3-month project for the intern, > > but > > > > > https://git.github.io/SoC-2019-

Re: [PATCH] Fix typos in translatable strings for v2.21.0

2019-02-11 Thread Jean-Noël Avila
On 11 février 2019, Jiang Xin wrote: > Jean-Noël Avila 于2019年2月11日周一 下午2:48写道: >> Signed-off-by: Jean-Noël Avila >> --- >> builtin/bisect--helper.c | 4 ++-- >> builtin/fetch.c | 2 +- >> builtin/rebase.c | 2 +- >> 3 files changed, 4 insertions(+), 4 deletions(-) > This re-rol

Re: [PATCH v2] git-p4: recover from inconsistent perforce history

2019-02-11 Thread Andrew Oakley
On Fri, 8 Feb 2019 09:10:33 + and...@adoakley.name wrote: > From: Andrew Oakley > > Perforce allows you commit files and directories with the same name, > so you could have files //depot/foo and //depot/foo/bar both checked > in. A p4 sync of a repository in this state fails. Deleting one

Re: Re: a git svn bug

2019-02-11 Thread 肖建晶
> 肖建晶 <06271...@bjtu.edu.cn> wrote: > > hi, > >git developers. I found a bug when i want to convert webkit to git > >there are some branch named safari... in webkit svn repo. > >when i want to convert them to branch in git. a problem happen. > > > >if you want to reproduce the pr

[PATCH] imap-send.c: add a missing space in error message

2019-02-11 Thread Nguyễn Thái Ngọc Duy
Signed-off-by: Nguyễn Thái Ngọc Duy --- Jiang Xin's typo patch [1] made me quickly go through all multi-line strings. This is the only bad string I found. [1] https://public-inbox.org/git/canyiybgf6oj0k3-k+s0dso-bzz2excvcoyxojtqsbbmhetg...@mail.gmail.com/ imap-send.c | 2 +- 1 file changed,

Re: [Breakage] 2.20.0-rc0 t1404: test_i18ngrep reports 1 instead of 0 on NonStop in one case

2019-02-11 Thread Duy Nguyen
On Mon, Feb 11, 2019 at 2:09 AM Randall S. Becker wrote: > > Hi All, > > I tracked down a breakage in t1404 subtest 52. The line > > test_i18ngrep "Unable to create $Q.*packed-refs.lock$Q: File exists" err The message does not match, does it? Here we grep for "File exists" but the message you sho

Re: GSoC 2019: Git's application submitted

2019-02-11 Thread Christian Couder
On Mon, Feb 11, 2019 at 9:39 AM Оля Тележная wrote: > > пн, 11 февр. 2019 г. в 10:46, Christian Couder : > > > > On Mon, Feb 11, 2019 at 6:48 AM Оля Тележная > > wrote: > > > > - Unify ref-filter formats with other --pretty formats (which is new) > > > > > > I am ready to act as a mentor in thi

git clone by certificate (known_hosts)

2019-02-11 Thread pm
Hello. I have trouble. https://superuser.com/questions/1252276/cant-type-during-git-clone-putty-connection

RE: [Breakage] 2.20.0-rc0 t1404: test_i18ngrep reports 1 instead of 0 on NonStop in one case

2019-02-11 Thread Randall S. Becker
On February 11, 2019 4:57, Duy Nguyen wrote: > On Mon, Feb 11, 2019 at 2:09 AM Randall S. Becker > wrote: > > > > Hi All, > > > > I tracked down a breakage in t1404 subtest 52. The line > > > > test_i18ngrep "Unable to create $Q.*packed-refs.lock$Q: File exists" > > err > > The message does not

Re: New command/tool: git filter-repo

2019-02-11 Thread Elijah Newren
Hi Ævar, On Fri, Feb 8, 2019 at 10:53 AM Ævar Arnfjörð Bjarmason wrote: > > On Thu, Jan 31 2019, Elijah Newren wrote: > > > What's the future? (Core command of git.git? place it in contrib? keep it > > in a separate repo?) I'm hoping to discuss that at the contributor summit > > today, but fe

Re: New command/tool: git filter-repo

2019-02-11 Thread Elijah Newren
Hi Dscho, On Fri, Feb 8, 2019 at 12:13 PM Johannes Schindelin wrote: > > Hi Ævar, > > On Fri, 8 Feb 2019, Ævar Arnfjörð Bjarmason wrote: > > > [...] > > > > But perhaps there's ways we can in advance deal with a potential > > future breaking API change. E.g. some Pythonic way of versioning th

[BUG] More on t5562 hangs randomly in subtests 6,8 and 13 in 2.21.0-rc0

2019-02-11 Thread Randall S. Becker
Hi All, I have localized the hang in t5562 (previous thread) to the invoke-with-content-length.pl script. At least on NonStop, what happens is that the perl process hangs waiting for close($out) to complete whether explicitly or implicitly (if the call is removed). The trace for the perl process s

Re: [PATCH 00/21] nd/diff-parseopt part 2

2019-02-11 Thread Junio C Hamano
SZEDER Gábor writes: > On Thu, Feb 07, 2019 at 05:33:05PM +0700, Nguyễn Thái Ngọc Duy wrote: >> Nguyễn Thái Ngọc Duy (21): >> diff.c: convert --patch-with-raw >> diff.c: convert --numstat and --shortstat >> diff.c: convert --dirstat and friends >> diff.c: convert --check >> ... >> dif

Re: [PATCH] utf8: handle systems that don't write BOM for UTF-16

2019-02-11 Thread Junio C Hamano
"brian m. carlson" writes: > On Sun, Feb 10, 2019 at 08:04:13AM +, Torsten Bögershausen wrote: > >> I think we agree that Git will write UTF-16 always as big endian with BOM, >> following the tradition of iconv/libiconv. >> If yes, we can reduce the lines of code/#idefs somewhat, have the kno

[PATCH] sequencer: make sign_off_header a file local symbol

2019-02-11 Thread Ramsay Jones
Commit d0aaa46fd3 ("commit: move empty message checks to libgit", 2017-11-10) removes the last use of 'sign_off_header' outside of the "sequencer.c" source file. Remove the extern declaration from the header file and mark the definition of the symbol with the static keyword. Signed-off-by: Ramsa

[PATCH] prune-packed: check for too many arguments

2019-02-11 Thread Ramsay Jones
Signed-off-by: Ramsay Jones --- Hi Junio, Another 'old find' (from feb 2017), but this time I don't seem to have sent this one to the list before. It is possible that I didn't think it was up to scratch ... dunno. ;-) ATB, Ramsay Jones builtin/prune-packed.c | 5 + 1 file changed, 5 ins

Re: [PATCH 00/21] nd/diff-parseopt part 2

2019-02-11 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy writes: > "What's cooking" mails seem to indicate that the series will be cooked > in full there then landed on master later. So here's the second part. Ah, I should have responded to this part. I think that the part 1 was reviewed and found reasonable, and we could merge

Re: [PATCH] completion: add more parameter value completion

2019-02-11 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy writes: Nguyễn Thái Ngọc Duy writes: > This adds value completion for a couple more paramters. To make it > easier to maintain these hard coded lists, add a comment at the original > list/code to remind people to update git-completion.bash too. > > Signed-off-by: Nguyễn T

Re: [PATCH v6 1/1] protocol: advertise multiple supported versions

2019-02-11 Thread Jonathan Tan
> > > +void get_client_protocol_version_advertisement(struct strbuf *advert) > > > +{ > > > + int i, tmp_nr = nr_allowed_versions; > > > + enum protocol_version *tmp_allowed_versions, config_version; > > > + strbuf_reset(advert); > > > + > > > + version_registration_locked = 1; > > > + > >

Re: Am a newby and I cannot compile git

2019-02-11 Thread Fabio Aiuto
Hello Santiago, I'm running debian Stretch on my machine, and using Eclipse. I'm new in linux world so I don't know how could I let you know all packages I've installed in a single screenshot. However I got the git sources with the following command: $ git clone git://git.kernel.org/pub/scm/git/gi

[PATCH 0/1] fixup! trace2: collect Windows-specific process information

2019-02-11 Thread Jeff Hostetler via GitGitGadget
Fix infinite loop observed on Windows computing process ancestry. This should be applied to V6 of "jh/trace2" currently in next. See: https://github.com/gitgitgadget/git/pull/108 Thanks Jeff Cc: gitster@pobox.comCc: peff@peff.netCc: jrnie...@gmail.com Jeff Hostetler (1): fixup! trace2: collec

[PATCH 1/1] fixup! trace2: collect Windows-specific process information

2019-02-11 Thread Jeff Hostetler via GitGitGadget
From: Jeff Hostetler Guard against infinite loop while computing the parent process hierarchy. CreateToolhelp32Snapshot() is used to get a list of all processes on the system. Each process entry contains the process PID and PPID (alive at the time of the snapshot). We compute the set of ancest

Re: [PATCH 8/8] remote-curl: in v2, fill credentials if needed

2019-02-11 Thread Jonathan Tan
> On Tue, Feb 05, 2019 at 04:21:22PM -0800, Jonathan Tan wrote: > > > In post_rpc(), remote-curl calls credential_fill() if HTTP_REAUTH is > > returned, but this is not true in proxy_request(). Do this in > > proxy_request() too. > > Can we do this as a general rule? If we look at the code in pos

Re: [PATCH 0/2] t/lib-gpg: a gpgsm fix, a minor improvement, and a question

2019-02-11 Thread SZEDER Gábor
On Sat, Feb 09, 2019 at 06:05:53PM -0500, Todd Zullinger wrote: > SZEDER Gábor wrote: > > Just curious: how did you noticed the missing GPGSM prereq? > > I just grep the build output for '# SKIP|skipped:' and then > filter out those which I expect (thing like MINGW and > NATIVE_CRLF that aren't li

Re: [PATCH v2] reflog: specify default pretty format in config

2019-02-11 Thread Junio C Hamano
Roland Hieber writes: > The output of git-reflog(1) is currently only customisable by calling > reflog with --pretty=... or overriding the "pretty.oneline" format in > the config, which is currently the default fallback. It is correct to point out that "git reflog --pretty=..." is a valid way to

[PATCH] test-lib: fix non-portable pattern bracket expressions

2019-02-11 Thread SZEDER Gábor
Use a '!' character to start a non-matching pattern bracket expression, as specified by POSIX in Shell Command Language section 2.13.1 Patterns Matching a Single Character [1]. I used '^' instead in three places in the previous three commits, to verify that the arguments of the '--stress=' and '--

Re: [PATCH 1/8] tests: define GIT_TEST_PROTOCOL_VERSION

2019-02-11 Thread Jeff King
On Tue, Feb 05, 2019 at 04:21:15PM -0800, Jonathan Tan wrote: > Define a GIT_TEST_PROTOCOL_VERSION environment variable meant to be used > from tests. When set, this ensures protocol.version is at least the > given value, allowing the entire test suite to be run as if this > configuration is in pl

Re: [PATCH 2/8] tests: always test fetch of unreachable with v0

2019-02-11 Thread Jeff King
On Tue, Feb 05, 2019 at 04:21:16PM -0800, Jonathan Tan wrote: > Some tests check that fetching an unreachable object fails, but protocol > v2 allows such fetches. Unset GIT_TEST_PROTOCOL_VERSION so that these > tests are always run using protocol v0. I think this is reasonable, but just musing on

Re: Am a newby and I cannot compile git!!!!

2019-02-11 Thread Brandon Richardson
Welcome to the community! Here are some documents that can help you get started: - INSTALL - Documentation/CodingGuidelines - Documentation/howto/maintain-git.txt - t/README - Documentation/SubmittingPatches On Sun, 10 Feb 2019 at 17:52, Fabio Aiuto wrote: > > Hallo to the whole git community, >

Re: [PATCH 8/8] remote-curl: in v2, fill credentials if needed

2019-02-11 Thread Jeff King
On Mon, Feb 11, 2019 at 11:20:54AM -0800, Jonathan Tan wrote: > > In the case of proxy_request(), we don't know ahead of time whether the > > request is large or not; we just proxy the data through. And we don't do > > the probe thing at all. So wouldn't we dropping some data for the > > follow-up

Re: [Proposed Fix] daemon.c: not initializing revents

2019-02-11 Thread Junio C Hamano
"Randall S. Becker" writes: > Hi All, > > I found this while trying to track down a hang in t5562 - this isn't the > fix, but here it is something that could be considered a code-inspection. If > there have been random unexplained hangs when git runs as a daemon, this > might be the cause. > > Ac

Re: [PATCH] Fix typos in translatable strings for v2.21.0

2019-02-11 Thread Junio C Hamano
Jean-Noël Avila writes: > On 11 février 2019, Jiang Xin wrote: > >> Jean-Noël Avila 于2019年2月11日周一 下午2:48写道: >>> Signed-off-by: Jean-Noël Avila >>> --- >>> builtin/bisect--helper.c | 4 ++-- >>> builtin/fetch.c | 2 +- >>> builtin/rebase.c | 2 +- >>> 3 files changed, 4 inserti

Re: [Fix v1] config.mak.uname: add FREAD_READS_DIRECTORIES for NonStop platform

2019-02-11 Thread Junio C Hamano
randall.s.bec...@rogers.com writes: > From: "Randall S. Becker" > > The NonStop platform needs this configuration item specified as > UnfortunatelyYes so that config directory files are correctly processed. > > Signed-off-by: Randall S. Becker > --- > config.mak.uname | 1 + > 1 file changed, 1

Re: [Breakage] 2.20.0-rc0 t1404: test_i18ngrep reports 1 instead of 0 on NonStop in one case

2019-02-11 Thread Junio C Hamano
Duy Nguyen writes: > On Mon, Feb 11, 2019 at 2:09 AM Randall S. Becker > wrote: >> >> Hi All, >> >> I tracked down a breakage in t1404 subtest 52. The line >> >> test_i18ngrep "Unable to create $Q.*packed-refs.lock$Q: File exists" err > > The message does not match, does it? Here we grep for "Fi

Re: [PATCH] sequencer: make sign_off_header a file local symbol

2019-02-11 Thread Junio C Hamano
Ramsay Jones writes: > This has been hanging around for a while. I sent it to the list last > time in [1], but it seems to have been dropped. (Found while attempting > to rebase loads of old branches to a newer base!) Thanks. Will apply.

git commit --verbose shows incorrect diff when pre-commit hook is used to modify files

2019-02-11 Thread Fernando Chorney
Hi, I am trying to use a pre-commit hook to modify files before they are to be committed. The problem I am running into is that if I use "git commit --verbose", which I often do so that I can see the diff, the diff it displays in the editor is the diff before the pre-commit hook was run rather tha

[PATCH] t0028: fix wrong octal values for BOM in setup

2019-02-11 Thread Kevin Daudt
The setup code uses octal values with printf to generate a BOM for UTF-16/32 BE/LE. It specifically uses '\777' to emit a 0xff byte. This relies on the fact that most shells truncate the value above 0o377. Ash however interprets '\777' as '\77' + a literal '7', resulting in an invalid BOM. Fix th

Re: [PATCH v3] utf8: handle systems that don't write BOM for UTF-16

2019-02-11 Thread Kevin Daudt
On Mon, Feb 11, 2019 at 01:26:39AM +, brian m. carlson wrote: > When serializing UTF-16 (and UTF-32), there are three possible ways to > write the stream. One can write the data with a BOM in either big-endian > or little-endian format, or one can write the data without a BOM in > big-endian fo

RE: [Proposed Fix] daemon.c: not initializing revents

2019-02-11 Thread Randall S. Becker
On February 11, 2019 15:57, Junio C Hamano wrote: > "Randall S. Becker" writes: > > > Hi All, > > > > I found this while trying to track down a hang in t5562 - this isn't > > the fix, but here it is something that could be considered a > > code-inspection. If there have been random unexplained ha

RE: [Breakage] 2.20.0-rc0 t1404: test_i18ngrep reports 1 instead of 0 on NonStop in one case

2019-02-11 Thread Randall S. Becker
On February 11, 2019 16:07, Junio C Hamano wrote: > Duy Nguyen writes: > > > On Mon, Feb 11, 2019 at 2:09 AM Randall S. Becker > > wrote: > >> > >> Hi All, > >> > >> I tracked down a breakage in t1404 subtest 52. The line > >> > >> test_i18ngrep "Unable to create $Q.*packed-refs.lock$Q: File exi

[PATCH] git-gui: Handle Ctrl+BS & Ctrl+Del in the commit msg

2019-02-11 Thread Ismael Luceno
Signed-off-by: Ismael Luceno --- git-gui.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/git-gui.sh b/git-gui.sh index 5bc21b878d41..e00d9a345294 100755 --- a/git-gui.sh +++ b/git-gui.sh @@ -3788,6 +3788,8 @@ bind $ui_comm <$M1B-Key-KP_Subtract> {show_less_context;break} bind $ui_comm

[PATCH] git-gui: Implement color configuration

2019-02-11 Thread Ismael Luceno
Signed-off-by: Ismael Luceno --- git-gui.sh | 33 ++--- lib/option.tcl | 16 2 files changed, 38 insertions(+), 11 deletions(-) diff --git a/git-gui.sh b/git-gui.sh index e00d9a345294..01e5462dc70e 100755 --- a/git-gui.sh +++ b/git-gui.sh @@ -903,

Re: git commit --verbose shows incorrect diff when pre-commit hook is used to modify files

2019-02-11 Thread Sergey Lukashev
At the time you see the diff the committing of changes has not yet been initiated. It's only after you type in the message that the ACTUAL committing starts and the hook runs. You can print the diff of what your hook has changed by running "git diff" in it before adding changes. 12.02.2019, 00

Re: GSoC 2019: Git's application submitted

2019-02-11 Thread Thomas Gummerer
On 02/11, Christian Couder wrote: > On Thu, Feb 7, 2019 at 10:33 PM Thomas Gummerer wrote: > > > > On 02/07, Johannes Schindelin wrote: > > > On Wed, 6 Feb 2019, Thomas Gummerer wrote: > > > > - implement pushing/poping conflicted state > > > > > > > >This would obviously be the end goal. > >

Re: [PATCH] test-lib: fix non-portable pattern bracket expressions

2019-02-11 Thread Junio C Hamano
SZEDER Gábor writes: > Use a '!' character to start a non-matching pattern bracket > expression, as specified by POSIX in Shell Command Language section > 2.13.1 Patterns Matching a Single Character [1]. > > I used '^' instead in three places in the previous three commits, to Ah, thanks for catc

Re: [PATCH] t0028: fix wrong octal values for BOM in setup

2019-02-11 Thread Junio C Hamano
Kevin Daudt writes: > The setup code uses octal values with printf to generate a BOM for > UTF-16/32 BE/LE. It specifically uses '\777' to emit a 0xff byte. This > relies on the fact that most shells truncate the value above 0o377. > > Ash however interprets '\777' as '\77' + a literal '7', resul

Fwd: git commit --verbose shows incorrect diff when pre-commit hook is used to modify files

2019-02-11 Thread Sergey Lukashev
Пересылаемое сообщение 12.02.2019, 01:54, "Sergey Lukashev" : Indeed. Sorry, this was how I thought it works. So the hook runs even if the commit is cancelled. A bit odd. Then let's have someone else from git list to answer your question. 12.02.2019, 01:11, "Fernando Chorne

Re: [PATCH 1/1] fixup! trace2: collect Windows-specific process information

2019-02-11 Thread Junio C Hamano
"Jeff Hostetler via GitGitGadget" writes: > From: Jeff Hostetler > > Guard against infinite loop while computing the parent process hierarchy. > > CreateToolhelp32Snapshot() is used to get a list of all processes on the > system. Each process entry contains the process PID and PPID (alive at th

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

2019-02-11 Thread Rafael Ascensão
On Thu, Feb 7, 2019 at 7:28 AM Junio C Hamano wrote: > > * du/branch-show-current (2018-10-26) 1 commit - branch: introduce > --show-current display option > > "git branch" learned a new subcommand "--show-current". > > Will merge to 'next'. > Did something change? I may have missed it. Until l

[GSoC] Microproject on git-credential-cache

2019-02-11 Thread Matheus Tavares Bernardino
Hi, everyone I've been contributing to the Linux Kernel for the past semester and I'm now looking to take my first steps in the git community. I'm also interested in GSoC 2019. I started looking at https://git.github.io/SoC-2019-Microprojects/ and one that got my attention was "Move ~/.git-creden

Re: [PATCH] test-lib: fix non-portable pattern bracket expressions

2019-02-11 Thread Jeff King
On Mon, Feb 11, 2019 at 08:58:03PM +0100, SZEDER Gábor wrote: > Use a '!' character to start a non-matching pattern bracket > expression, as specified by POSIX in Shell Command Language section > 2.13.1 Patterns Matching a Single Character [1]. Just when I think I know every little gotcha in the

BUG: git worktree add directory-path fails due to over-aggressive disallowing of worktrees with same suffix

2019-02-11 Thread Cameron Gunnin
The bug: git init worktree-test-repo git --git-dir=worktree-test-repo/.git commit --allow-empty -m "first commit" git --git-dir=worktree-test-repo/.git branch branch1 git --git-dir=worktree-test-repo/.git branch branch2 mkdir unique-path-1 unique-path-2 cd unique-path-1 git --git-dir=

[PATCH] protocol-capabilities.txt: document symref

2019-02-11 Thread Josh Steadmon
In 7171d8c15f ("upload-pack: send symbolic ref information as capability"), we added a symref capability to the pack protocol, but it was never documented. Adapt the patch notes from that commit and add them to the capabilities documentation. Signed-off-by: Josh Steadmon --- Documentation/techni

Re: [PATCH v3] utf8: handle systems that don't write BOM for UTF-16

2019-02-11 Thread brian m. carlson
On Mon, Feb 11, 2019 at 10:43:06PM +0100, Kevin Daudt wrote: > With some additional fixes, this indeed does solve the issue for Alpine > Linux, thanks. > > I had to fix the following as well: > > iff --git a/t/t0028-working-tree-encoding.sh > b/t/t0028-working-tree-encoding.sh > index 8936ba6757

Re: [PATCH] protocol-capabilities.txt: document symref

2019-02-11 Thread Jonathan Nieder
Josh Steadmon wrote: > In 7171d8c15f ("upload-pack: send symbolic ref information as > capability"), we added a symref capability to the pack protocol, but it > was never documented. Adapt the patch notes from that commit and add > them to the capabilities documentation. > > Signed-off-by: Josh St

Re: GSoC 2019: Git's application submitted

2019-02-11 Thread Christian Couder
On Mon, Feb 11, 2019 at 11:18 PM Thomas Gummerer wrote: > > On 02/11, Christian Couder wrote: > > Historically though we have always been very optimistic in what we > > thought a student could accomplish in a GSoC. And we are very likely > > to find more ideas for improvements during the GSoC, in

Re: [GSoC] Microproject on git-credential-cache

2019-02-11 Thread Jeff King
On Mon, Feb 11, 2019 at 09:45:21PM -0200, Matheus Tavares Bernardino wrote: > I've been contributing to the Linux Kernel for the past semester and > I'm now looking to take my first steps in the git community. I'm also > interested in GSoC 2019. Hi, and welcome! > I started looking at https://gi

Re: [PATCH] protocol-capabilities.txt: document symref

2019-02-11 Thread Jeff King
On Mon, Feb 11, 2019 at 03:52:24PM -0800, Josh Steadmon wrote: > In 7171d8c15f ("upload-pack: send symbolic ref information as > capability"), we added a symref capability to the pack protocol, but it > was never documented. Adapt the patch notes from that commit and add > them to the capabilities

Re: [PATCH] protocol-capabilities.txt: document symref

2019-02-11 Thread Josh Steadmon
On 2019.02.11 19:05, Jeff King wrote: > On Mon, Feb 11, 2019 at 03:52:24PM -0800, Josh Steadmon wrote: > > > In 7171d8c15f ("upload-pack: send symbolic ref information as > > capability"), we added a symref capability to the pack protocol, but it > > was never documented. Adapt the patch notes fro

Re: [GSoC] Microproject on git-credential-cache

2019-02-11 Thread Christian Couder
Hi, On Tue, Feb 12, 2019 at 12:48 AM Matheus Tavares Bernardino wrote: > > Hi, everyone > > I've been contributing to the Linux Kernel for the past semester and > I'm now looking to take my first steps in the git community. I'm also > interested in GSoC 2019. Thanks for your interest in Git! >

Re: [GSoC] Microproject on git-credential-cache

2019-02-11 Thread Matheus Tavares Bernardino
On Mon, Feb 11, 2019 at 10:00 PM Jeff King wrote: > > On Mon, Feb 11, 2019 at 09:45:21PM -0200, Matheus Tavares Bernardino wrote: > > > I've been contributing to the Linux Kernel for the past semester and > > I'm now looking to take my first steps in the git community. I'm also > > interested in G

Re: [GSoC] Microproject on git-credential-cache

2019-02-11 Thread Matheus Tavares Bernardino
On Mon, Feb 11, 2019 at 10:09 PM Christian Couder wrote: > > Hi, > > On Tue, Feb 12, 2019 at 12:48 AM Matheus Tavares Bernardino > wrote: > > > > Hi, everyone > > > > I've been contributing to the Linux Kernel for the past semester and > > I'm now looking to take my first steps in the git communi

Re: [Breakage] 2.20.0-rc0 t1404: test_i18ngrep reports 1 instead of 0 on NonStop in one case

2019-02-11 Thread Jeff King
On Mon, Feb 11, 2019 at 01:07:15PM -0800, Junio C Hamano wrote: > >> test_i18ngrep "Unable to create $Q.*packed-refs.lock$Q: File exists" err > > > > The message does not match, does it? Here we grep for "File exists" > > but the message you showed says "File already exists". > > Hmph, this is fr

Re: [PATCH] git-gui: Handle Ctrl+BS & Ctrl+Del in the commit msg

2019-02-11 Thread brian m. carlson
On Mon, Feb 11, 2019 at 10:42:03PM +0100, Ismael Luceno wrote: > Signed-off-by: Ismael Luceno > --- > git-gui.sh | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/git-gui.sh b/git-gui.sh > index 5bc21b878d41..e00d9a345294 100755 > --- a/git-gui.sh > +++ b/git-gui.sh > @@ -3788,6 +3788,8

Re: [PATCH] test-lib: fix non-portable pattern bracket expressions

2019-02-11 Thread SZEDER Gábor
On Mon, Feb 11, 2019 at 06:46:26PM -0500, Jeff King wrote: > On Mon, Feb 11, 2019 at 08:58:03PM +0100, SZEDER Gábor wrote: > > > Use a '!' character to start a non-matching pattern bracket > > expression, as specified by POSIX in Shell Command Language section > > 2.13.1 Patterns Matching a Single

Re: [PATCH v3] utf8: handle systems that don't write BOM for UTF-16

2019-02-11 Thread Junio C Hamano
"brian m. carlson" writes: >> - cat lf.utf8.raw | iconv -f UTF-8 -t UTF-${i} >lf.utf${i}.raw && >> - cat crlf.utf8.raw | iconv -f UTF-8 -t UTF-${i} >crlf.utf${i}.raw && >> + cat lf.utf8.raw | eval "write_utf${i}" >lf.utf${i}.raw && >> + cat crlf.utf8.raw | eval "write_utf$

Re: [GSoC] Microproject on git-credential-cache

2019-02-11 Thread Jeff King
On Mon, Feb 11, 2019 at 10:23:25PM -0200, Matheus Tavares Bernardino wrote: > > > For the microproject "Add configuration options for some commonly used > > > command-line options", are there some options already known to be good > > > for adding to configuration file? > > > > Hmm. I don't offhand

Re: [Breakage] 2.20.0-rc0 t1404: test_i18ngrep reports 1 instead of 0 on NonStop in one case

2019-02-11 Thread Junio C Hamano
Jeff King writes: > Hmm. We care to _some_ degree, since that's the condition we set up for > making sure that update-ref cannot take the lock. But it would probably > be fine to just confirm that we failed to take the lock. And there, > checking for just "Unable to create $Q.*packed-refs.lock" w

Re: [PATCH] test-lib: fix non-portable pattern bracket expressions

2019-02-11 Thread Jeff King
On Tue, Feb 12, 2019 at 01:30:18AM +0100, SZEDER Gábor wrote: > > I learn > > another one. :) Thanks for fixing this, and for digging up the POSIX > > reference. > > I had to, that 16.04's dash worked, but neither dash in older LTS nor > newer upstream version did was particularly puzzling. Turn

Re: [Breakage] 2.20.0-rc0 t1404: test_i18ngrep reports 1 instead of 0 on NonStop in one case

2019-02-11 Thread Jeff King
On Mon, Feb 11, 2019 at 04:32:52PM -0800, Junio C Hamano wrote: > Jeff King writes: > > > Hmm. We care to _some_ degree, since that's the condition we set up for > > making sure that update-ref cannot take the lock. But it would probably > > be fine to just confirm that we failed to take the loc

Re: [Patch v1 1/3] test-lib-functions.sh: add generate_zero_bytes function

2019-02-11 Thread Jeff King
On Sat, Feb 09, 2019 at 09:05:04PM -0500, Eric Sunshine wrote: > On Sat, Feb 9, 2019 at 1:59 PM wrote: > > t5318 and t5562 used /dev/zero, which is not portable. This function > > provides both a fixed block of NUL bytes and an infinite stream of NULs. > > > > Signed-off-by: Randall S. Becker >

Re: Confusion about the PACK format

2019-02-11 Thread Jeff King
On Sun, Feb 10, 2019 at 07:35:38PM +, Ramsay Jones wrote: > > Now, the 'n-byte type and length' is a variable length encoding of > > the object type and length. The number of bytes used to encode this > > data is content dependant. If the top bit of a byte is set, then we > > need to process t

Re: [PATCH 0/2] t/lib-gpg: a gpgsm fix, a minor improvement, and a question

2019-02-11 Thread Jeff King
On Sat, Feb 09, 2019 at 03:06:05PM +0100, SZEDER Gábor wrote: > On Thu, Feb 07, 2019 at 10:17:44PM -0500, Todd Zullinger wrote: > > Looking through the build logs for the fedora git packages, I noticed it > > was missing the GPGSM prereq. > > Just curious: how did you noticed the missing GPGSM pr

[PATCH v4] utf8: handle systems that don't write BOM for UTF-16

2019-02-11 Thread brian m. carlson
When serializing UTF-16 (and UTF-32), there are three possible ways to write the stream. One can write the data with a BOM in either big-endian or little-endian format, or one can write the data without a BOM in big-endian format. Most systems' iconv implementations choose to write it with a BOM i

Re: [PATCH v3] utf8: handle systems that don't write BOM for UTF-16

2019-02-11 Thread brian m. carlson
On Mon, Feb 11, 2019 at 04:31:00PM -0800, Junio C Hamano wrote: > "brian m. carlson" writes: > > >> - cat lf.utf8.raw | iconv -f UTF-8 -t UTF-${i} >lf.utf${i}.raw && > >> - cat crlf.utf8.raw | iconv -f UTF-8 -t UTF-${i} >crlf.utf${i}.raw && > >> + cat lf.utf8.raw | eval "write_u

Re: [Patch v1 1/3] test-lib-functions.sh: add generate_zero_bytes function

2019-02-11 Thread Eric Sunshine
On Mon, Feb 11, 2019 at 7:37 PM Jeff King wrote: > On Sat, Feb 09, 2019 at 09:05:04PM -0500, Eric Sunshine wrote: > > On Sat, Feb 9, 2019 at 1:59 PM wrote: > > > +generate_zero_bytes () { > > > + perl -e 'if ($ARGV[0] == "infinity") { > > > > s/perl/"$PERL_PATH"/ > > This shouldn't be neces

[PATCH 01/31] t/lib-submodule-update: use appropriate length constant

2019-02-11 Thread brian m. carlson
Instead of using a specific invalid hard-coded object ID, produce one of the appropriate length by using test_oid. Signed-off-by: brian m. carlson --- t/lib-submodule-update.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/t/lib-submodule-update.sh b/t/lib-submodule-updat

[PATCH 02/31] pack-bitmap: make bitmap header handling hash agnostic

2019-02-11 Thread brian m. carlson
Increase the checksum field in struct bitmap_disk_header to be GIT_MAX_RAWSZ bytes in length and ensure that we hash the proper number of bytes out when computing the bitmap checksum. Signed-off-by: brian m. carlson --- pack-bitmap-write.c | 2 +- pack-bitmap.c | 2 +- pack-bitmap.h

[PATCH 00/31] Hash function transition part 16

2019-02-11 Thread brian m. carlson
This is the sixteenth series of hash function transition patches. This series contains various fixes, mostly focused around the pack bitmap code, the HTTP code, the archive code, the index, and parts of our Perl code. This is the second to last series required for a "stage 0" Git; that is, one tha

[PATCH 11/31] builtin/name-rev: make hash-size independent

2019-02-11 Thread brian m. carlson
Use the_hash_algo when parsing instead of GIT_SHA1_HEXSZ so that this function works with any size hash. Rename the variable forty to counter, as this is a better name and is independent of the hash size. Signed-off-by: brian m. carlson --- builtin/name-rev.c | 14 -- 1 file changed

[PATCH 09/31] notes: replace sha1_to_hex

2019-02-11 Thread brian m. carlson
Replace the uses of sha1_to_hex in this function with hash_to_hex to allow the use of SHA-256 as well. Rename some variables since this code is no longer limited to SHA-1. Signed-off-by: brian m. carlson --- notes.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git

[PATCH 07/31] notes-merge: switch to use the_hash_algo

2019-02-11 Thread brian m. carlson
Switch from using GIT_SHA1_HEXSZ to GIT_MAX_HEXSZ and the_hash_algo so that the code works with any hash algorithm. Signed-off-by: brian m. carlson --- notes-merge.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/notes-merge.c b/notes-merge.c index 280aa8e6c1..2fe724f1

[PATCH 03/31] pack-bitmap: convert struct stored_bitmap to object_id

2019-02-11 Thread brian m. carlson
Convert struct stored_bitmap to use struct object_id. Signed-off-by: brian m. carlson --- pack-bitmap.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pack-bitmap.c b/pack-bitmap.c index b53f37243c..c760913cea 100644 --- a/pack-bitmap.c +++ b/pack-bitmap.c @@ -18,7 +

[PATCH 15/31] builtin/pull: make hash-size independent

2019-02-11 Thread brian m. carlson
Instead of using get_oid_hex and GIT_SHA1_HEXSZ, use parse_oid_hex to avoid the need for a constant and simplify the code. Signed-off-by: brian m. carlson --- builtin/pull.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/builtin/pull.c b/builtin/pull.c index 701d1473dc.

[PATCH 14/31] builtin/am: make hash size independent

2019-02-11 Thread brian m. carlson
Instead of using GIT_SHA1_HEXSZ, switch to using the_hash_algo and parse_oid_hex to parse the lines involved in rebasing notes. Signed-off-by: brian m. carlson --- builtin/am.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/builtin/am.c b/builtin/am.c index 58a2aef2

[PATCH 10/31] object-store: rename and expand packed_git's sha1 member

2019-02-11 Thread brian m. carlson
This member is used to represent the pack checksum of the pack in question. Expand this member to be GIT_MAX_RAWSZ bytes in length so it works with longer hashes and rename it to be "hash" instead of "sha1". This transformation was made with a change to the definition and the following semantic pa

[PATCH 20/31] http: replace hard-coded constant with the_hash_algo

2019-02-11 Thread brian m. carlson
Replace a hard-coded 40 with a reference to the_hash_algo. Signed-off-by: brian m. carlson --- http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http.c b/http.c index a09adc518f..993ddc956a 100644 --- a/http.c +++ b/http.c @@ -2065,7 +2065,7 @@ int http_fetch_ref(const c

[PATCH 06/31] submodule: avoid hard-coded constants

2019-02-11 Thread brian m. carlson
Instead of using hard-coded 40-based constants, express these values in terms of the_hash_algo and GIT_MAX_HEXSZ. Signed-off-by: brian m. carlson --- merge-recursive.c | 2 +- submodule.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/merge-recursive.c b/merge-recur

[PATCH 05/31] pack-bitmap: switch hard-coded constants to the_hash_algo

2019-02-11 Thread brian m. carlson
Switch two hard-coded uses of 20 to references to the_hash_algo. Signed-off-by: brian m. carlson --- pack-bitmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pack-bitmap.c b/pack-bitmap.c index 6d6fa68563..603492c237 100644 --- a/pack-bitmap.c +++ b/pack-bitmap.c @@

[PATCH 16/31] http-push: convert to use the_hash_algo

2019-02-11 Thread brian m. carlson
Switch the lock token code to use the_hash_algo and increase its buffers to be allocated using GIT_MAX_* constants. Update the parsing of object paths to use the_hash_algo as well. Signed-off-by: brian m. carlson --- http-push.c | 20 ++-- 1 file changed, 10 insertions(+), 10 de

[PATCH 13/31] fast-import: replace sha1_to_hex

2019-02-11 Thread brian m. carlson
Replace the uses of sha1_to_hex in this function with hash_to_hex to allow the use of SHA-256 as well. Rename a variable since it is no longer limited to SHA-1. Signed-off-by: brian m. carlson --- fast-import.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fast-import.

[PATCH 28/31] dir: make untracked cache extension hash size independent

2019-02-11 Thread brian m. carlson
Instead of using a struct with a flex array member to read and write the untracked cache extension, use a shorter, fixed-length struct and add the name and hash data explicitly. Signed-off-by: brian m. carlson --- dir.c | 28 ++-- 1 file changed, 14 insertions(+), 14 dele

[PATCH 04/31] pack-bitmap: replace sha1_to_hex

2019-02-11 Thread brian m. carlson
Replace the uses of sha1_to_hex in the pack bitmap code with hash_to_hex to allow the use of SHA-256 as well. Rename a few variables since they are no longer limited to SHA-1. Signed-off-by: brian m. carlson --- pack-bitmap-write.c | 6 +++--- pack-bitmap.c | 8 2 files changed,

[PATCH 18/31] http-push: remove remaining uses of sha1_to_hex

2019-02-11 Thread brian m. carlson
Since sha1_to_hex is limited to SHA-1, switch all remaining uses of it in this file to hash_to_hex or oid_to_hex. Modify update_remote to take a pointer to struct object_id, and since we don't modify that parameter in the function, set it to be const as well. Signed-off-by: brian m. carlson ---

[PATCH 31/31] gitweb: make hash size independent

2019-02-11 Thread brian m. carlson
Gitweb has several hard-coded 40 values throughout it to check for values that are passed in or acquired from Git. To simplify the code, introduce a regex variable that matches either exactly 40 or exactly 64 hex characters, and use this variable anywhere we would have previously hard-coded a 40 i

[PATCH 27/31] builtin/difftool: use parse_oid_hex

2019-02-11 Thread brian m. carlson
Instead of using get_oid_hex and adding constants to the result, use parse_oid_hex to make this code independent of the hash size. Signed-off-by: brian m. carlson --- builtin/difftool.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/builtin/difftool.c b/builtin/difftoo

[PATCH 21/31] http: compute hash of downloaded objects using the_hash_algo

2019-02-11 Thread brian m. carlson
Signed-off-by: brian m. carlson --- http.c | 10 +- http.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/http.c b/http.c index 993ddc956a..458d07fabb 100644 --- a/http.c +++ b/http.c @@ -2337,8 +2337,8 @@ static size_t fwrite_sha1_file(char *ptr, size_t eltsize,

[PATCH 24/31] archive-tar: make hash size independent

2019-02-11 Thread brian m. carlson
Make the tar generation code hash size independent by using the_hash_algo. Make the tar parsing code compute the header value based on the hash algorithm in use. Update a variable name and switch to hash_to_hex. Signed-off-by: brian m. carlson --- archive-tar.c | 7 --- built

  1   2   >