Re: Is support for 10.8 dropped?

2018-04-21 Thread Eric Sunshine
On Sun, Apr 22, 2018 at 1:15 AM, Igor Korot wrote: > MyMac:git-2.17.0 igorkorot$ cat config.mak > NO_GETTEXT=Yes > NO_OPENSSL=Yes > > MyMac:dbhandler igorkorot$ /Users/igorkorot/git-2.17.0/git pull > fatal: unable to access > 'https://github.com/oneeyeman1/dbhandler.git/': error:1407742E:SSL > rou

Re: Is support for 10.8 dropped?

2018-04-21 Thread Igor Korot
Hi, Sorry for the long delay. Been busy with life things. I built git from sources. The build was successful. [code] MyMac:git-2.17.0 igorkorot$ cat config.mak NO_GETTEXT=Yes NO_OPENSSL=Yes [/code] Next I tried to do git pull for my project: [code] MyMac:dbhandler igorkorot$ /Users/igorkorot/gi

Re: [PATCH v4 05/11] replace: introduce --convert-graft-file

2018-04-21 Thread Eric Sunshine
On Sat, Apr 21, 2018 at 5:48 AM, Johannes Schindelin wrote: > This option is intended to help with the transition away from the > now-deprecated graft file. > > Signed-off-by: Johannes Schindelin > --- > diff --git a/builtin/replace.c b/builtin/replace.c > @@ -454,6 +455,38 @@ static int create_g

Re: [PATCH 0/6] Compute and consume generation numbers

2018-04-21 Thread Jakub Narebski
Jakub Narebski writes: > Derrick Stolee writes: >> On 4/11/2018 3:32 PM, Jakub Narebski wrote: > >>> What would you suggest as a good test that could imply performance? The >>> Google Colab notebook linked to above includes a function to count >>> number of commits (nodes / vertices in the commit

Re: [RFC PATCH v10 32.5/36] unpack_trees: fix memory corruption with split_index when src != dst

2018-04-21 Thread Elijah Newren
On Sat, Apr 21, 2018 at 12:37 PM, Elijah Newren wrote: > Currently, all callers of unpack_trees() set o->src_index == o->dst_index. > Since we create a temporary index in o->result, then discard o->dst_index > and overwrite it with o->result, when o->src_index == o->dst_index it is > safe to just

[RFC PATCH v10 32.5/36] unpack_trees: fix memory corruption with split_index when src != dst

2018-04-21 Thread Elijah Newren
Currently, all callers of unpack_trees() set o->src_index == o->dst_index. Since we create a temporary index in o->result, then discard o->dst_index and overwrite it with o->result, when o->src_index == o->dst_index it is safe to just reuse o->src_index's split_index for o->result. However, o->src

Re: [PATCH v3 0/6] Keep all info in command-list.txt in git binary

2018-04-21 Thread Duy Nguyen
On Sat, Apr 21, 2018 at 06:54:08PM +0200, Nguyễn Thái Ngọc Duy wrote: > Changes: > > - remove the deprecated column in command-list.txt. My change break it > anyway if anyone uses it. > - fix up failed tests that I marked in the RFC and kinda forgot about it. > - fix bashisms in generate-cmdlist

[PATCH v3 4/6] git.c: implement --list-cmds=porcelain

2018-04-21 Thread Nguyễn Thái Ngọc Duy
This is useful for git-completion.bash because it needs this set of commands. Right now we have to maintain a separate command category in there. Note that the current completion script incorrectly classifies filter-branch as porcelain and t9902 tests this behavior. We keep it this way in t9902 be

[PATCH v3 5/6] help: add "-a --verbose" to list all commands with synopsis

2018-04-21 Thread Nguyễn Thái Ngọc Duy
This lists all recognized commands [1] by category. The group order follows closely git.txt. [1] We may actually show commands that are not built (e.g. if you set NO_PERL you don't have git-instaweb but it's still listed here). I ignore the problem because on Linux a git package could be split any

[PATCH v3 6/6] help: use command-list.txt for the source of guides

2018-04-21 Thread Nguyễn Thái Ngọc Duy
The help command currently hard codes the list of guides and their summary in C. Let's move this list to command-list.txt. This lets us extract summary lines from Documentation/git*.txt. This also potentially lets us lists guides in git.txt, but I'll leave that for now. Signed-off-by: Nguyễn Thái

[PATCH v3 0/6] Keep all info in command-list.txt in git binary

2018-04-21 Thread Nguyễn Thái Ngọc Duy
Changes: - remove the deprecated column in command-list.txt. My change break it anyway if anyone uses it. - fix up failed tests that I marked in the RFC and kinda forgot about it. - fix bashisms in generate-cmdlist.sh - fix segfaul in "git help" Nguyễn Thái Ngọc Duy (6): git.c: convert --list

[PATCH v3 3/6] generate-cmdlist.sh: keep all information in common-cmds.h

2018-04-21 Thread Nguyễn Thái Ngọc Duy
common-cmds.h is used to extract the list of common commands (by group) and a one-line summary of each command. Some information is dropped, for example command category or summary of other commands. Update generate-cmdlist.sh to keep all the information. The extra info will be used shortly. The "

[PATCH v3 2/6] git.c: implement --list-cmds=all and use it in git-completion.bash

2018-04-21 Thread Nguyễn Thái Ngọc Duy
Signed-off-by: Nguyễn Thái Ngọc Duy --- contrib/completion/git-completion.bash | 2 +- git.c | 2 ++ help.c | 18 ++ help.h | 1 + 4 files changed, 22 insertions(+), 1 deletion(-)

[PATCH v3 1/6] git.c: convert --list-*builtins to --list-cmds=*

2018-04-21 Thread Nguyễn Thái Ngọc Duy
Even if these are hidden options, let's make them a bit more generic since we're introducing more listing types shortly. Signed-off-by: Nguyễn Thái Ngọc Duy --- contrib/completion/git-completion.bash | 2 +- git.c | 12 +++- t/t0012-help.sh

Re: [PATCH v8 06/16] sequencer: introduce the `merge` command

2018-04-21 Thread Phillip Wood
On 21/04/18 11:33, Johannes Schindelin wrote: This patch is part of the effort to reimplement `--preserve-merges` with a substantially improved design, a design that has been developed in the Git for Windows project to maintain the dozens of Windows-specific patch series on top of upstream Git.

Re: [PATCH 3/3] rebase --skip: clean up commit message after a failedfixup/squash

2018-04-21 Thread Phillip Wood
On 20/04/18 13:18, Johannes Schindelin wrote: During a series of fixup/squash commands, the interactive rebase builds up a commit message with comments. This will be presented to the user in the editor if at least one of those commands was a `squash`. However, if the last of these fixup/squash

[no subject]

2018-04-21 Thread LiN JiNG
I didn't get any reply from you concerning my last email.. Br LiN __ Sky Silk, http://aknet.kz

[PATCH v2 3/3] Avoid multiple PREFIX definitions

2018-04-21 Thread Johannes Schindelin
From: Philip Oakley The short and sweet PREFIX can be confused when used in many places. Rename both usages to better describe their purpose. EXEC_CMD_PREFIX is used in full to disambiguate it from the nearby GIT_EXEC_PATH. The PREFIX in sideband.c, while nominally independant of the exec_cmd P

[PATCH v2 1/3] gettext: avoid initialization if the locale dir is not present

2018-04-21 Thread Johannes Schindelin
The runtime of a simple `git.exe version` call on Windows is currently dominated by the gettext setup, adding a whopping ~150ms to the ~210ms total. Given that this cost is added to each and every git.exe invocation goes through common-main's invocation of git_setup_gettext(), and given that scrip

[PATCH v2 0/3] Some add-on patches on top of dj/runtime-prefix

2018-04-21 Thread Johannes Schindelin
We carried a slightly different version of the git_setup_gettext() patch (which took care of releasing the buffer allocated by system_path()), and we carry two more patches that touch the same area, so now that dj/runtime-prefix hit `next`, it seems a good time to contribute those, too. Changes si

[PATCH v2 2/3] git_setup_gettext: plug memory leak

2018-04-21 Thread Johannes Schindelin
The system_path() function returns a freshly-allocated string. We need to release it. Signed-off-by: Johannes Schindelin --- gettext.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/gettext.c b/gettext.c index 701355d66e7..7272771c8e4 100644 --- a/gettext.c +++ b/ge

[PATCH v8 16/16] rebase -i --rebase-merges: add a section to the man page

2018-04-21 Thread Johannes Schindelin
The --rebase-merges mode is probably not half as intuitive to use as its inventor hopes, so let's document it some. Signed-off-by: Johannes Schindelin --- Documentation/git-rebase.txt | 135 +++ 1 file changed, 135 insertions(+) diff --git a/Documentation/git-reb

[PATCH v8 15/16] rebase -i: introduce --rebase-merges=[no-]rebase-cousins

2018-04-21 Thread Johannes Schindelin
This one is a bit tricky to explain, so let's try with a diagram: C / \ A - B - E - F \ / D To illustrate what this new mode is all about, let's consider what happens upon `git rebase -i --rebase-merges B`, in particular to the commit `D`. So far, the new branch structure

[PATCH v8 14/16] pull: accept --rebase=merges to recreate the branch topology

2018-04-21 Thread Johannes Schindelin
Similar to the `preserve` mode simply passing the `--preserve-merges` option to the `rebase` command, the `merges` mode simply passes the `--rebase-merges` option. This will allow users to conveniently rebase non-trivial commit topologies when pulling new commits, without flattening them. Signed-

[PATCH v8 13/16] rebase --rebase-merges: avoid "empty merges"

2018-04-21 Thread Johannes Schindelin
The `git merge` command does not allow merging commits that are already reachable from HEAD: `git merge HEAD^`, for example, will report that we are already up to date and not change a thing. In an interactive rebase, such a merge could occur previously, e.g. when competing (or slightly modified)

[PATCH v8 12/16] sequencer: handle post-rewrite for merge commands

2018-04-21 Thread Johannes Schindelin
In the previous patches, we implemented the basic functionality of the `git rebase -i --rebase-merges` command, in particular the `merge` command to create merge commits in the sequencer. The interactive rebase is a lot more these days, though, than a simple cherry-pick in a loop. For example, it

[PATCH v8 11/16] sequencer: make refs generated by the `label` command worktree-local

2018-04-21 Thread Johannes Schindelin
This allows for rebases to be run in parallel in separate worktrees (think: interrupted in the middle of one rebase, being asked to perform a different rebase, adding a separate worktree just for that job). Signed-off-by: Johannes Schindelin --- refs.c | 3 ++- t/t3430-rebase-

[PATCH v8 10/16] rebase --rebase-merges: add test for --keep-empty

2018-04-21 Thread Johannes Schindelin
From: Phillip Wood If there are empty commits on the left hand side of $upstream...HEAD then the empty commits on the right hand side that we want to keep are being pruned. Signed-off-by: Phillip Wood --- t/t3421-rebase-topology-linear.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/t/t

[PATCH v8 08/16] rebase-helper --make-script: introduce a flag to rebase merges

2018-04-21 Thread Johannes Schindelin
The sequencer just learned new commands intended to recreate branch structure (similar in spirit to --preserve-merges, but with a substantially less-broken design). Let's allow the rebase--helper to generate todo lists making use of these commands, triggered by the new --rebase-merges option. For

[PATCH v8 09/16] rebase: introduce the --rebase-merges option

2018-04-21 Thread Johannes Schindelin
Once upon a time, this here developer thought: wouldn't it be nice if, say, Git for Windows' patches on top of core Git could be represented as a thicket of branches, and be rebased on top of core Git in order to maintain a cherry-pick'able set of patch series? The original attempt to answer this

[PATCH v8 07/16] sequencer: fast-forward `merge` commands, if possible

2018-04-21 Thread Johannes Schindelin
Just like with regular `pick` commands, if we are trying to rebase a merge commit, we now test whether the parents of said commit match HEAD and the commits to be merged, and fast-forward if possible. This is not only faster, but also avoids unnecessary proliferation of new objects. Signed-off-by

[PATCH v8 06/16] sequencer: introduce the `merge` command

2018-04-21 Thread Johannes Schindelin
This patch is part of the effort to reimplement `--preserve-merges` with a substantially improved design, a design that has been developed in the Git for Windows project to maintain the dozens of Windows-specific patch series on top of upstream Git. The previous patch implemented the `label` and `

[PATCH v8 05/16] git-rebase--interactive: clarify arguments

2018-04-21 Thread Johannes Schindelin
From: Stefan Beller Up to now each command took a commit as its first argument and ignored the rest of the line (usually the subject of the commit) Now that we are about to introduce commands that take different arguments, clarify each command by giving the argument list. Signed-off-by: Stefan

[PATCH v8 04/16] sequencer: offer helpful advice when a command was rescheduled

2018-04-21 Thread Johannes Schindelin
Previously, we did that just magically, and potentially left some users quite puzzled. Let's err on the safe side instead, telling the user what is happening, and how they are supposed to continue. Signed-off-by: Johannes Schindelin --- sequencer.c | 16 1 file changed, 16 inser

[PATCH v8 03/16] sequencer: refactor how original todo list lines are accessed

2018-04-21 Thread Johannes Schindelin
Previously, we did a lot of arithmetic gymnastics to get at the line in the todo list (as stored in todo_list.buf). This might have been fast, but only in terms of execution speed, not in terms of developer time. Let's refactor this to make it a lot easier to read, and hence to reason about the co

[PATCH v8 02/16] sequencer: make rearrange_squash() a bit more obvious

2018-04-21 Thread Johannes Schindelin
There are some commands that have to be skipped from rearranging by virtue of not handling any commits. However, the logic was not quite obvious: it skipped commands based on their position in the enum todo_command. Instead, let's make it explicit that we skip all commands that do not handle any

[PATCH v8 01/16] sequencer: avoid using errno clobbered by rollback_lock_file()

2018-04-21 Thread Johannes Schindelin
As pointed out in a review of the `--rebase-merges` patch series, `rollback_lock_file()` clobbers errno. Therefore, we have to report the error message that uses errno before calling said function. Signed-off-by: Johannes Schindelin --- sequencer.c | 10 ++ 1 file changed, 6 insertions(+

[PATCH v8 00/16] rebase -i: offer to recreate commit topology by rebasing merges

2018-04-21 Thread Johannes Schindelin
Junio, I think this is now ready for `next`. Thank you for your patience and help with this. Once upon a time, I dreamed of an interactive rebase that would not linearize all patches and drop all merge commits, but instead recreate the commit topology faithfully. My original attempt was --preserv

Re: [PATCH 1/3] gettext: avoid initialization if the locale dir is not present

2018-04-21 Thread Johannes Schindelin
Hi Ævar, On Sat, 21 Apr 2018, Ævar Arnfjörð Bjarmason wrote: > I still stand by the observation that the "why don't we" isn't clear at > all from your patch's commit message and that should be fixed. It > doesn't mention any of the actual reasons for the change which have been > revealed in this

[PATCH v3 0/4] Colorize push errors

2018-04-21 Thread Johannes Schindelin
To help users discern large chunks of white text (when the push succeeds) from large chunks of white text (when the push fails), let's add some color to the latter. The original contribution came in via Pull Request from the Git for Windows project: https://github.com/git-for-windows/git/

[PATCH v3 1/4] color: introduce support for colorizing stderr

2018-04-21 Thread Johannes Schindelin
So far, we only ever asked whether stdout wants to be colorful. In the upcoming patches, we will want to make push errors more prominent, which are printed to stderr, though. So let's refactor the want_color() function into a want_color_fd() function (which expects to be called with fd == 1 or fd

[PATCH v3 3/4] Add a test to verify that push errors are colorful

2018-04-21 Thread Johannes Schindelin
This actually only tests whether the push errors/hints are colored if the respective color.* config settings are `always`, but in the regular case they default to `auto` (in which case we color the messages when stderr is connected to an interactive terminal), therefore these tests should suffice.

[PATCH v3 4/4] Document the new color.* settings to colorize push errors/hints

2018-04-21 Thread Johannes Schindelin
Let's make it easier for users to find out how to customize these colors. Signed-off-by: Johannes Schindelin --- Documentation/config.txt | 28 1 file changed, 28 insertions(+) diff --git a/Documentation/config.txt b/Documentation/config.txt index 2659153cb37..2cea0

[PATCH v3 2/4] push: colorize errors

2018-04-21 Thread Johannes Schindelin
From: Ryan Dammrose This is an attempt to resolve an issue I experience with people that are new to Git -- especially colleagues in a team setting -- where they miss that their push to a remote location failed because the failure and success both return a block of white text. An example is if I

[PATCH v4 09/11] technical/shallow: describe the relationship with replace refs

2018-04-21 Thread Johannes Schindelin
Now that grafts are deprecated, we should start to assume that readers have no idea what grafts are. So it makes more sense to describe the "shallow" feature in terms of replace refs. Suggested-by: Eric Sunshine Signed-off-by: Johannes Schindelin --- Documentation/technical/shallow.txt | 19 +++

[PATCH v4 11/11] Remove obsolete script to convert grafts to replace refs

2018-04-21 Thread Johannes Schindelin
The functionality is now implemented as `git replace --convert-graft-file`. Signed-off-by: Johannes Schindelin --- contrib/convert-grafts-to-replace-refs.sh | 28 --- 1 file changed, 28 deletions(-) delete mode 100755 contrib/convert-grafts-to-replace-refs.sh diff --git a/c

[PATCH v4 10/11] technical/shallow: describe why shallow cannot use replace refs

2018-04-21 Thread Johannes Schindelin
It is tempting to do away with commit_graft altogether (in the long haul), now that grafts are deprecated. However, the shallow feature needs a couple of things that the replace refs cannot fulfill. Let's point that out in the documentation. Signed-off-by: Johannes Schindelin --- Documentation/

[PATCH v4 08/11] filter-branch: stop suggesting to use grafts

2018-04-21 Thread Johannes Schindelin
The graft file is deprecated now, so let's use replace refs in the example in filter-branch's man page instead. Suggested-by: Eric Sunshine Signed-off-by: Johannes Schindelin --- Documentation/git-filter-branch.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentatio

[PATCH v4 07/11] Deprecate support for .git/info/grafts

2018-04-21 Thread Johannes Schindelin
The grafts feature was a convenient way to "stitch together" ancient history to the fresh start of linux.git. Its implementation is, however, not up to Git's standards, as there are too many ways where it can lead to surprising and unwelcome behavior. For example, when pushing from a repository w

[PATCH v4 06/11] Add a test for `git replace --convert-graft-file`

2018-04-21 Thread Johannes Schindelin
The proof, as the saying goes, lies in the pudding. So here is a regression test that not only demonstrates what the option is supposed to accomplish, but also demonstrates that it does accomplish it. Signed-off-by: Johannes Schindelin --- t/t6050-replace.sh | 20 1 file cha

[PATCH v4 04/11] replace: "libify" create_graft() and callees

2018-04-21 Thread Johannes Schindelin
File this away as yet another patch in the "libification" category. As with all useful functions, in the next commit we want to use create_graft() from a higher-level function where it would be inconvenient if the called function simply die()s: if there is a problem, we want to let the user know h

[PATCH v4 05/11] replace: introduce --convert-graft-file

2018-04-21 Thread Johannes Schindelin
This option is intended to help with the transition away from the now-deprecated graft file. Signed-off-by: Johannes Schindelin --- Documentation/git-replace.txt | 11 ++--- builtin/replace.c | 44 ++- 2 files changed, 51 insertions(+), 4 deletions

[PATCH v4 02/11] commit: Let the callback of for_each_mergetag return on error

2018-04-21 Thread Johannes Schindelin
This is yet another patch to be filed under the keyword "libification". There is one subtle change in behavior here, where a `git log` that has been asked to show the mergetags would now stop reporting the mergetags upon the first failure, whereas previously, it would have continued to the next me

[PATCH v4 03/11] replace: avoid using die() to indicate a bug

2018-04-21 Thread Johannes Schindelin
We have the BUG() macro for that purpose. Signed-off-by: Johannes Schindelin --- builtin/replace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/replace.c b/builtin/replace.c index 245d3f4164e..e345a5a0f1c 100644 --- a/builtin/replace.c +++ b/builtin/replace.c @@ -5

[PATCH v4 01/11] argv_array: offer to split a string by whitespace

2018-04-21 Thread Johannes Schindelin
This is a simple function that will interpret a string as a whitespace delimited list of values, and add those values into the array. Note: this function does not (yet) offer to split by arbitrary delimiters, or keep empty values in case of runs of whitespace, or de-quote Unix shell style. All fo

[PATCH v4 00/11] Deprecate .git/info/grafts

2018-04-21 Thread Johannes Schindelin
It is fragile, as there is no way for the revision machinery to say "but now I want to traverse the graph ignoring the graft file" e.g. when pushing commits to a remote repository (which, as a consequence, can miss commits). And we already have a better solution with `git replace --graft [...]`.

Re: [PATCH v3 06/11] Add a test for `git replace --convert-graft-file`

2018-04-21 Thread Johannes Schindelin
Hi Gábor, On Sat, 21 Apr 2018, SZEDER Gábor wrote: > > The proof, as the saying goes, lies in the pudding. So here is a > > regression test that not only demonstrates what the option is supposed to > > accomplish, but also demonstrates that it does accomplish it. > > > > Signed-off-by: Johannes

Re: [PATCH v3 01/11] argv_array: offer to split a string by whitespace

2018-04-21 Thread Johannes Schindelin
Hi Stefan, On Fri, 20 Apr 2018, Stefan Beller wrote: > On Fri, Apr 20, 2018 at 3:20 PM, Johannes Schindelin > wrote: > > This is a simple function that will interpret a string as a whitespace > > delimited list of values, and add those values into the array. > > > > Note: this function does not

Please Let My Situation Touch Your Heart

2018-04-21 Thread Mrs Monica
-- Hello My Dear Calvary Greetings in the name of the ALMIGHTY I am Mrs Lillian Allan from Switzerland I am married to Late Mr.Allan Joseph who is a wealthy business man here in Burkina Faso we were married for many years without a child before he died after a brief illness Before his sudden d

Re: [PATCH 5/6] builtin/grep.c: show column numbers via --column-number

2018-04-21 Thread Martin Ågren
On 21 April 2018 at 05:45, Taylor Blau wrote: > This commit teaches 'git-grep(1)' a new option, '--column-number'. This > option builds upon previous commits to show the column number of the > first match on a non-context line. > > For example: > > $ git grep -mn example | head -n3 > .clang-fo

Re: [PATCH 3/6] grep.[ch]: teach columnnum, color_columnno to grep_opt

2018-04-21 Thread Martin Ågren
On 21 April 2018 at 05:45, Taylor Blau wrote: > diff --git a/grep.c b/grep.c > index 29bc799ecf..7872a5d868 100644 > --- a/grep.c > +++ b/grep.c > @@ -95,6 +95,10 @@ int grep_config(const char *var, const char *value, void > *cb) > opt->linenum = git_config_bool(var, value); >

Re: [PATCH 1/3] gettext: avoid initialization if the locale dir is not present

2018-04-21 Thread Ævar Arnfjörð Bjarmason
On Fri, Apr 20 2018, Johannes Schindelin wrote: > Hi Ævar, > > On Fri, 20 Apr 2018, Ævar Arnfjörð Bjarmason wrote: > >> On Fri, Apr 20 2018, Martin Ågren wrote: >> >> > On 20 April 2018 at 11:59, Ævar Arnfjörð Bjarmason >> > wrote: >> >> >> >> On Fri, Apr 20 2018, Johannes Schindelin wrote: >>

[PATCH v3 4/4] rebase --skip: clean up commit message after a failed fixup/squash

2018-04-21 Thread Johannes Schindelin
During a series of fixup/squash commands, the interactive rebase builds up a commit message with comments. This will be presented to the user in the editor if at least one of those commands was a `squash`. However, if the last of these fixup/squash commands fails with merge conflicts, and if the u

[PATCH v3 3/4] sequencer: leave a tell-tale when a fixup/squash failed

2018-04-21 Thread Johannes Schindelin
In the upcoming patch to clean up fixup/squash commit messages even when skipping a final fixup/squash that failed with merge conflicts, we will need to have some indicator what happened. As we need to remove the message-fixup and message-squash files upon failure, we cannot use those. So let's ju

[PATCH v3 1/4] rebase -i: demonstrate bugs with fixup!/squash! commit messages

2018-04-21 Thread Johannes Schindelin
When multiple fixup/squash commands are processed and the last one causes merge conflicts and is skipped, we leave the "This is a combination of ..." comments in the commit message. Noticed by Eric Sunshine. This regression test also demonstrates that we rely on the localized version of

[PATCH v3 0/4] rebase -i: avoid stale "# This is a combination of" in commit messages

2018-04-21 Thread Johannes Schindelin
Eric Sunshine pointed out that I had such a commit message in https://public-inbox.org/git/CAPig+cRrS0_nYJJY=o6cbov630snqhpv5qgrqdd8mw-syzn...@mail.gmail.com/ and I went on a hunt to figure out how the heck this happened. Turns out that if there is a fixup/squash chain where the *last* command fai

[PATCH v3 2/4] rebase -i: Handle "combination of commits" with GETTEXT_POISON

2018-04-21 Thread Johannes Schindelin
We previously relied on the localized versions of # This is a combination of commits (which we write into the commit messages during fixup/squash chains) to contain as ASCII. This is not true in general, and certainly not in GETTEXT_POISON, as demonstrated by the regression test we jus

Re: [PATCH v2 3/4] sequencer: leave a tell-tale when a fixup/squash failed

2018-04-21 Thread Johannes Schindelin
Hi Stefan, On Fri, 20 Apr 2018, Stefan Beller wrote: > > static GIT_PATH_FUNC(rebase_path_amend, "rebase-merge/amend") > > +/* > > + * If there was a merge conflict in a fixup/squash series, we need to > > + * record the type so that a `git rebase --skip` can clean up the commit > > + * message

Re: [PATCH v2 2/4] rebase -i: Handle "combination of commits" with GETTEXT_POISON

2018-04-21 Thread Johannes Schindelin
Hi Stefan, On Fri, 20 Apr 2018, Stefan Beller wrote: > On Fri, Apr 20, 2018 at 2:07 PM, Johannes Schindelin > wrote: > > We previously relied on the localized versions of > > > > # This is a combination of commits > > > > (which we write into the commit messages during fixup/squash chai

Re: [PATCH v3] fast-export: fix regression skipping some merge-commits

2018-04-21 Thread Martin Ågren
On 21 April 2018 at 05:43, Junio C Hamano wrote: > but I do not think the updated "fix" below is better. It might be > just aesthetics and I suspect I won't find it as disturbing if we > could push with > > object_array_push(commits, (struct object *)commit); > > or something that is more