RE: co-authoring commits

2015-06-18 Thread Jason Pyeron
> -Original Message- > From: Theodore Ts'o > Sent: Wednesday, June 17, 2015 6:52 PM > > On Wed, Jun 17, 2015 at 10:26:32PM +0200, Tuncer Ayaz wrote: > > > > By allowing multiple authors, you don't have to decide who's the > > primary author, as in such situations usually there is no > p

[PATCH v2 2/2] rebase -i: do not leave a CHERRY_PICK_HEAD file behind

2015-06-18 Thread Johannes Schindelin
When skipping commits whose changes were already applied via `git rebase --continue`, we need to clean up said file explicitly. The same is not true for `git rebase --skip` because that will execute `git reset --hard` as part of the "skip" handling in git-rebase.sh, even before git-rebase--interac

[PATCH v2 1/2] t3404: demonstrate CHERRY_PICK_HEAD bug

2015-06-18 Thread Johannes Schindelin
When rev-list's --cherry option does not detect that a patch has already been applied upstream, an interactive rebase would offer to reapply it and consequently stop at that patch with a failure, mentioning that the diff is empty. Traditionally, a `git rebase --continue` simply skips the commit in

[PATCH v2 0/2] rebase -i: Fix left-behind CHERRY_PICK_HEAD

2015-06-18 Thread Johannes Schindelin
These patches fix a bug that bites me often enough when rebasing Git for Windows. The symptom is that .git/CHERRY_PICK_HEAD is left behind after skipping an already-merged patch with `git rebase --continue` instead of `git rebase --skip`. I always prefer the former invocation because the latter wo

Re: [PATCH/RFC v4 07/10] send-email: reduce dependancies impact on parse_address_line

2015-06-18 Thread Matthieu Moy
Remi Lespinet writes: > I've some more tests, maybe I should put them all in this post ? Yes, please post as much as you have. Ideally, this should be automatically tested, but if you don't have time to write the automated tests, at least having a track of what you did on the list archives can h

Re: Git completion not using ls-remote to auto-complete during push

2015-06-18 Thread SZEDER Gábor
Quoting Robert Dailey > I do the following: > > $ git push origin :topic > > If I stop halfway through typing 'topic' and hit TAB, auto-completion > does not work if I do not have a local branch by that name (sometimes > I delete my local branch first, then I push to delete it remotely). I > tho

[PATCH/WIP v3 18/31] am: implement am --signoff

2015-06-18 Thread Paul Tan
Since d1c5f2a (Add git-am, applymbox replacement., 2005-10-07), git-am supported the --signoff option which will append a signoff at the end of the commit messsage. Re-implement this feature by calling append_signoff() if the option is set. Signed-off-by: Paul Tan --- builtin/am.c | 13 +

[PATCH/WIP v3 11/31] am: refuse to apply patches if index is dirty

2015-06-18 Thread Paul Tan
Since d1c5f2a (Add git-am, applymbox replacement., 2005-10-07), git-am will refuse to apply patches if the index is dirty. Re-implement this behavior. Signed-off-by: Paul Tan --- Notes: Note: no tests for this builtin/am.c | 46 ++ 1 file changed

[PATCH/WIP v3 23/31] am: handle stray state directory

2015-06-18 Thread Paul Tan
Should git-am terminate unexpectedly between the point where the state directory is created, but the "next" and "last" files are not written yet, a stray state directory will be left behind. As such, since b141f3c (am: handle stray $dotest directory, 2013-06-15), git-am.sh explicitly recognizes su

[PATCH/WIP v3 17/31] am: exit with user friendly message on patch failure

2015-06-18 Thread Paul Tan
Since ced9456 (Give the user a hint for how to continue in the case that git-am fails because it requires user intervention, 2006-05-02), git-am prints additional information on how the user can re-invoke git-am to resume patch application after resolving the failure. Re-implement this through the

[PATCH/WIP v3 16/31] am: implement quiet option

2015-06-18 Thread Paul Tan
Since 0e987a1 (am, rebase: teach quiet option, 2009-06-16), git-am supported the --quiet option and GIT_QUIET environment variable, and when told to be quiet, would only speak on failure. Re-implement this by introducing the say() function, which works like fprintf_ln(), but would only write to the

[PATCH/WIP v3 12/31] am: implement --resolved/--continue

2015-06-18 Thread Paul Tan
Since 0c15cc9 (git-am: --resolved., 2005-11-16), git-am supported resuming from a failed patch application. The user will manually apply the patch, and the run git am --resolved which will then commit the resulting index. Re-implement this feature by introducing am_resolve(). Since it makes no sen

[PATCH/WIP v3 22/31] am: don't use git-mailinfo if --rebasing

2015-06-18 Thread Paul Tan
Since 5e835ca (rebase: do not munge commit log message, 2008-04-16), git am --rebasing no longer gets the commit log message from the patch, but reads it directly from the commit identified by the "From " header line. Since 43c2325 (am: use get_author_ident_from_commit instead of mailinfo when reb

[PATCH/WIP v3 29/31] am: implement --ignore-date

2015-06-18 Thread Paul Tan
Since a79ec62 (git-am: Add --ignore-date option, 2009-01-24), git-am.sh supported the --ignore-date option, and would use the current timestamp instead of the one provided in the patch if the option was set. Re-implement this option in builtin/am.c. Signed-off-by: Paul Tan --- builtin/am.c | 7

[PATCH/WIP v3 25/31] am: implement --[no-]message-id, am.messageid

2015-06-18 Thread Paul Tan
Since a078f73 (git-am: add --message-id/--no-message-id, 2014-11-25), git-am.sh supported the --[no-]message-id options, and the "am.messageid" setting which specifies the default option. --[no-]message-id tells git-am whether or not the -m option should be passed to git-mailinfo. Re-implement th

[PATCH/WIP v3 13/31] am: implement --skip

2015-06-18 Thread Paul Tan
Since d1c5f2a (Add git-am, applymbox replacement., 2005-10-07), git-am supported resuming from a failed patch application by skipping the current patch. Re-implement this feature by introducing am_skip(). Signed-off-by: Paul Tan --- builtin/am.c | 121

[PATCH/WIP v3 31/31] am: implement -S/--gpg-sign, commit.gpgsign

2015-06-18 Thread Paul Tan
Since 3b4e395 (am: add the --gpg-sign option, 2014-02-01), git-am.sh supported the --gpg-sign option, and would pass it to git-commit-tree, thus GPG-signing the commit object. Re-implement this option in builtin/am.c. git-commit-tree would also sign the commit by default if the commit.gpgsign set

[PATCH/WIP v3 26/31] am: support --keep-cr, am.keepcr

2015-06-18 Thread Paul Tan
Since ad2c928 (git-am: Add command line parameter `--keep-cr` passing it to git-mailsplit, 2010-02-27), git-am.sh supported the --keep-cr option and would pass it to git-mailsplit. Since e80d4cb (git-am: Add am.keepcr and --no-keep-cr to override it, 2010-02-27), git-am.sh supported the am.keepcr

[PATCH/WIP v3 24/31] am: implement -k/--keep, --keep-non-patch

2015-06-18 Thread Paul Tan
Since d1c5f2a (Add git-am, applymbox replacement., 2005-10-07), git-am.sh supported the -k/--keep option to pass the -k option to git-mailsplit. Since f7e5ea1 (am: learn passing -b to mailinfo, 2012-01-16), git-am.sh supported the --keep-non-patch option to pass the -b option to git-mailsplit. Re

[PATCH/WIP v3 10/31] am: refresh the index at start

2015-06-18 Thread Paul Tan
If a file is unchanged but stat-dirty, git-apply may erroneously fail to apply patches, thinking that they conflict with a dirty working tree. As such, since 2a6f08a (am: refresh the index at start and --resolved, 2011-08-15), git-am will refresh the index before applying patches. Re-implement thi

[PATCH/WIP v3 19/31] cache-tree: introduce write_index_as_tree()

2015-06-18 Thread Paul Tan
A caller may wish to write a temporary index as a tree. However, write_cache_as_tree() assumes that the index was read from, and will write to, the default index file path. Introduce write_index_as_tree() which removes this limitation by allowing the caller to specify its own index_state and index

[PATCH/WIP v3 20/31] am: implement 3-way merge

2015-06-18 Thread Paul Tan
Since d1c5f2a (Add git-am, applymbox replacement., 2005-10-07), git-am.sh supported the --3way option, and if set, would attempt to do a 3-way merge if the initial patch application fails. Since 5d86861 (am -3: list the paths that needed 3-way fallback, 2012-03-28), in a 3-way merge git-am.sh woul

[PATCH/WIP v3 27/31] am: implement --[no-]scissors

2015-06-18 Thread Paul Tan
Since 017678b (am/mailinfo: Disable scissors processing by default, 2009-08-26), git-am supported the --[no-]scissors option, passing it to git-mailinfo. Re-implement support for this option. Signed-off-by: Paul Tan --- Notes: There are tests for mailinfo --scissors, but not am --scissors,

[PATCH/WIP v3 14/31] am: implement --abort

2015-06-18 Thread Paul Tan
Since 3e5057a (git am --abort, 2008-07-16), git-am supported the --abort option that will rewind HEAD back to the original commit. Re-implement this feature through am_abort(). Since 7b3b7e3 (am --abort: keep unrelated commits since the last failure and warn, 2010-12-21), to prevent commits made s

[PATCH/WIP v3 15/31] am: don't accept patches when there's a session in progress

2015-06-18 Thread Paul Tan
Since d1c5f2a (Add git-am, applymbox replacement., 2005-10-07), git-am would error out if the user gave it mbox(s) on the command-line, but there was a session in progress. Since c95b138 (Fix git-am safety checks, 2006-09-15), git-am would detect if the user attempted to feed it a mbox via stdin,

[PATCH/WIP v3 21/31] am: --rebasing

2015-06-18 Thread Paul Tan
Since 3041c32 (am: --rebasing, 2008-03-04), git-am.sh supported the --rebasing option, which is used internally by git-rebase to tell git-am that it is being used for its purpose. It would create the empty file $state_dir/rebasing to help "completion" scripts tell if the ongoing operation is am or

[PATCH/WIP v3 30/31] am: implement --committer-date-is-author-date

2015-06-18 Thread Paul Tan
Since 3f01ad6 (am: Add --committer-date-is-author-date option, 2009-01-22), git-am.sh implemented the --committer-date-is-author-date option, which tells git-am to use the timestamp recorded in the email message as both author and committer date. Re-implement this option in builtin/am.c. Signed-o

[PATCH/WIP v3 28/31] am: pass git-apply's options to git-apply

2015-06-18 Thread Paul Tan
git-am.sh recognizes some of git-apply's options, and would pass them to git-apply: * --whitespace, since 8c31cb8 (git-am: --whitespace=x option., 2006-02-28) * -C, since 67dad68 (add -C[NUM] to git-am, 2007-02-08) * -p, since 2092a1f (Teach git-am to pass -p option down to git-apply, 2007-0

[PATCH/WIP v3 07/31] am: extract patch, message and authorship with git-mailinfo

2015-06-18 Thread Paul Tan
For the purpose of applying the patch and committing the results, implement extracting the patch data, commit message and authorship from an e-mail message using git-mailinfo. git-mailinfo is run as a separate process, but ideally in the future, we should be be able to access its functionality dir

[PATCH/WIP v3 00/31] Make git-am a builtin

2015-06-18 Thread Paul Tan
This patch series depends on pt/pull-builtin for OPT_PASSTHRU_ARGV() and argv_array_pushv(). This is a re-roll of [WIP v3]. Thanks Junio and Stefan for the reviews last round. The biggest addition this round would be the support for git-rebase. Here's a small unscientific benchmark that rebases 5

[PATCH/WIP v3 09/31] am: commit applied patch

2015-06-18 Thread Paul Tan
Implement do_commit(), which commits the index which contains the results of applying the patch, along with the extracted commit message and authorship information. Signed-off-by: Paul Tan --- builtin/am.c | 51 +++ 1 file changed, 47 insertions(+)

[PATCH/WIP v3 08/31] am: apply patch with git-apply

2015-06-18 Thread Paul Tan
Implement applying the patch to the index using git-apply. Signed-off-by: Paul Tan --- builtin/am.c | 57 - 1 file changed, 56 insertions(+), 1 deletion(-) diff --git a/builtin/am.c b/builtin/am.c index d6434e4..296a5fc 100644 --- a/builti

[PATCH/WIP v3 02/31] wrapper: implement xfopen()

2015-06-18 Thread Paul Tan
A common usage pattern of fopen() is to check if it succeeded, and die() if it failed: FILE *fp = fopen(path, "w"); if (!fp) die_errno(_("could not open '%s' for writing"), path); Implement a wrapper function xfopen() for the above, so that we can save a few lines

[PATCH/WIP v3 03/31] am: implement skeletal builtin am

2015-06-18 Thread Paul Tan
For the purpose of rewriting git-am.sh into a C builtin, implement a skeletal builtin/am.c that redirects to $GIT_EXEC_PATH/git-am if the environment variable _GIT_USE_BUILTIN_AM is not defined. Since in the Makefile git-am.sh takes precedence over builtin/am.c, $GIT_EXEC_PATH/git-am will contain t

[PATCH/WIP v3 01/31] wrapper: implement xopen()

2015-06-18 Thread Paul Tan
A common usage pattern of open() is to check if it was successful, and die() if it was not: int fd = open(path, O_WRONLY | O_CREAT, 0777); if (fd < 0) die_errno(_("Could not open '%s' for writing."), path); Implement a wrapper function xopen() that does the above s

[PATCH/WIP v3 05/31] am: split out mbox/maildir patches with git-mailsplit

2015-06-18 Thread Paul Tan
git-am.sh supports mbox, stgit and mercurial patches. Re-implement support for splitting out mbox/maildirs using git-mailsplit, while also implementing the framework required to support other patch formats in the future. Re-implement support for the --patch-format option (since a5a6755 (git-am for

[PATCH/WIP v3 06/31] am: detect mbox patches

2015-06-18 Thread Paul Tan
Since 15ced75 (git-am foreign patch support: autodetect some patch formats, 2009-05-27), git-am.sh is able to autodetect mbox, stgit and mercurial patches through heuristics. Re-implement support for autodetecting mbox/maildir files. Helped-by: Eric Sunshine Signed-off-by: Paul Tan --- builtin

[PATCH/WIP v3 04/31] am: implement patch queue mechanism

2015-06-18 Thread Paul Tan
git-am applies a series of patches. If the process terminates abnormally, we want to be able to resume applying the series of patches. This requires the session state to be saved in a persistent location. Implement the mechanism of a "patch queue", represented by 2 integers -- the index of the cur

Re: [PATCH 1/2] t3404: demonstrate CHERRY_PICK_HEAD bug

2015-06-18 Thread Johannes Schindelin
Hi Junio, On 2015-06-17 19:33, Junio C Hamano wrote: > Johannes Schindelin writes: > >> +test_expect_failure 'rebase --continue removes CHERRY_PICK_HEAD' ' >> +git checkout -b commit-to-skip && >> +for double in X 3 1 >> +do >> +seq 5 | sed "s/$double/&&/" >seq && >> +

[PATCH] format-patch: introduce format.outputDirectory configuration

2015-06-18 Thread Alexander Kuleshov
We can pass -o/--output-directory to the format-patch command to store patches not in the working directory. This patch introduces format.outputDirectory configuration option for same purpose. The case of usage of this configuration option can be convinience to not pass everytime -o/--output-direc

[PATCH v4 16/19] pull: configure --rebase via branch..rebase or pull.rebase

2015-06-18 Thread Paul Tan
Since cd67e4d (Teach 'git pull' about --rebase, 2007-11-28), fetch+rebase could be set by default by defining the config variable branch..rebase. This setting can be overriden on the command line by --rebase and --no-rebase. Since 6b37dff (pull: introduce a pull.rebase option to enable --rebase, 2

[PATCH v4 15/19] pull: teach git pull about --rebase

2015-06-18 Thread Paul Tan
Since cd67e4d (Teach 'git pull' about --rebase, 2007-11-28), if the --rebase option is set, git-rebase is run instead of git-merge. Re-implement this by introducing run_rebase(), which is called instead of run_merge() if opt_rebase is a true value. Since c85c792 (pull --rebase: be cleverer with r

[PATCH v4 18/19] pull --rebase: error on no merge candidate cases

2015-06-18 Thread Paul Tan
Tweak the error messages printed by die_no_merge_candidates() to take into account that we may be "rebasing against" rather than "merging with". Signed-off-by: Paul Tan --- builtin/pull.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/builtin/pull.c b/builti

[PATCH v4 14/19] pull: set reflog message

2015-06-18 Thread Paul Tan
f947413 (Use GIT_REFLOG_ACTION environment variable instead., 2006-12-28) established git-pull's method for setting the reflog message, which is to set the environment variable GIT_REFLOG_ACTION to the evaluation of "pull${1+ $*}" if it has not already been set. Re-implement this behavior. Helped

[PATCH v4 17/19] pull --rebase: exit early when the working directory is dirty

2015-06-18 Thread Paul Tan
Re-implement the behavior introduced by f9189cf (pull --rebase: exit early when the working directory is dirty, 2008-05-21). Signed-off-by: Paul Tan --- builtin/pull.c | 77 +- 1 file changed, 76 insertions(+), 1 deletion(-) diff --git a/b

[PATCH v4 11/19] pull: check if in unresolved merge state

2015-06-18 Thread Paul Tan
Since d38a30d (Be more user-friendly when refusing to do something because of conflict., 2010-01-12), git-pull will error out with user-friendly advices if the user is in the middle of a merge or has unmerged files. Re-implement this behavior. While the "has unmerged files" case can be handled by

[PATCH v4 19/19] pull: remove redirection to git-pull.sh

2015-06-18 Thread Paul Tan
At the beginning of the rewrite of git-pull.sh to C, we introduced a redirection to git-pull.sh if the environment variable _GIT_USE_BUILTIN_PULL was not defined in order to not break test scripts that relied on a functional git-pull. Now that all of git-pull's functionality has been re-implemente

[PATCH v4 10/19] pull: support pull.ff config

2015-06-18 Thread Paul Tan
Since b814da8 (pull: add pull.ff configuration, 2014-01-15), git-pull.sh would lookup the configuration value of "pull.ff", and set the flag "--ff" if its value is "true", "--no-ff" if its value is "false" and "--ff-only" if its value is "only". Re-implement this behavior. Signed-off-by: Paul Tan

[PATCH v4 06/19] pull: pass verbosity, --progress flags to fetch and merge

2015-06-18 Thread Paul Tan
7f87aff (Teach/Fix pull/fetch -q/-v options, 2008-11-15) taught git-pull to accept the verbosity -v and -q options and pass them to git-fetch and git-merge. Re-implement support for the verbosity flags by adding it to the options list and introducing argv_push_verbosity() to push the flags into th

[PATCH v4 07/19] pull: pass git-merge's options to git-merge

2015-06-18 Thread Paul Tan
Specify git-merge's options in the option list, and pass any specified options to git-merge. These options are: * -n, --stat, --summary: since d8abe14 (merge, pull: introduce '--(no-)stat' option, 2008-04-06) * --log: since efb779f (merge, pull: add '--(no-)log' command line option, 2008-04-

[PATCH v4 12/19] pull: fast-forward working tree if head is updated

2015-06-18 Thread Paul Tan
Since b10ac50 (Fix pulling into the same branch., 2005-08-25), git-pull, upon detecting that git-fetch updated the current head, will fast-forward the working tree to the updated head commit. Re-implement this behavior. Signed-off-by: Paul Tan --- builtin/pull.c | 30 +++

[PATCH v4 09/19] pull: error on no merge candidates

2015-06-18 Thread Paul Tan
Commit a8c9bef (pull: improve advice for unconfigured error case, 2009-10-05) fully established the current advices given by git-pull for the different cases where git-fetch will not have anything marked for merge: 1. We fetched from a specific remote, and a refspec was given, but it ended up n

[PATCH v4 04/19] pull: implement skeletal builtin pull

2015-06-18 Thread Paul Tan
For the purpose of rewriting git-pull.sh into a C builtin, implement a skeletal builtin/pull.c that redirects to $GIT_EXEC_PATH/git-pull.sh if the environment variable _GIT_USE_BUILTIN_PULL is not defined. This allows us to fall back on the functional git-pull.sh when running the test suite for tes

[PATCH v4 13/19] pull: implement pulling into an unborn branch

2015-06-18 Thread Paul Tan
b4dc085 (pull: merge into unborn by fast-forwarding from empty tree, 2013-06-20) established git-pull's current behavior of pulling into an unborn branch by fast-forwarding the work tree from an empty tree to the merge head, then setting HEAD to the merge head. Re-implement this behavior by introd

[PATCH v4 08/19] pull: pass git-fetch's options to git-fetch

2015-06-18 Thread Paul Tan
Since eb2a8d9 (pull: handle git-fetch's options as well, 2015-06-02), git-pull knows about and handles git-fetch's options, passing them to git-fetch. Re-implement this behavior. Since 29609e6 (pull: do nothing on --dry-run, 2010-05-25) git-pull supported the --dry-run option, exiting after git-fe

[PATCH v4 02/19] parse-options-cb: implement parse_opt_passthru_argv()

2015-06-18 Thread Paul Tan
Certain git commands, such as git-pull, are simply wrappers around other git commands like git-fetch, git-merge and git-rebase. As such, these wrapper commands will typically need to "pass through" command-line options of the commands they wrap. Implement the parse_opt_passthru_argv() parse-option

[PATCH v4 03/19] argv-array: implement argv_array_pushv()

2015-06-18 Thread Paul Tan
When we have a null-terminated array, it would be useful to convert it or append it to an argv_array for further manipulation. Implement argv_array_pushv() which will push a null-terminated array of strings on to an argv_array. Signed-off-by: Paul Tan --- Documentation/technical/api-argv-array.

[PATCH v4 05/19] pull: implement fetch + merge

2015-06-18 Thread Paul Tan
Implement the fetch + merge functionality of git-pull, by first running git-fetch with the repo and refspecs provided on the command line, then running git-merge on FETCH_HEAD to merge the fetched refs into the current branch. Helped-by: Junio C Hamano Signed-off-by: Paul Tan --- builtin/pull.c

[PATCH v4 01/19] parse-options-cb: implement parse_opt_passthru()

2015-06-18 Thread Paul Tan
Certain git commands, such as git-pull, are simply wrappers around other git commands like git-fetch, git-merge and git-rebase. As such, these wrapper commands will typically need to "pass through" command-line options of the commands they wrap. Implement the parse_opt_passthru() parse-options cal

[PATCH v4 00/19] Make git-pull a builtin

2015-06-18 Thread Paul Tan
This is a re-roll of [v3]. It squashes in Ramsay's patch "fix some sparse warnings", and fixes the use-before-free reported by Duy. Thanks a lot for dealing with my mess :-). Other than that, there are no other changes as I'm working on the git-am side of things. Previous versions: [v1] http://t

Re: [PATCH 3/3] trace: add GIT_TRACE_STDIN

2015-06-18 Thread Duy Nguyen
On Thu, Jun 18, 2015 at 2:10 AM, Jeff King wrote: > On Wed, Jun 17, 2015 at 05:04:04PM +0700, Duy Nguyen wrote: > >> I wonder if we could do it a bit differently. Instead of >> GIT_TRACE_STDIN, I would add GIT_TRACE_HOOK that points to a script. >> Whenever a command is run via run-command interfa

Re: [PATCH] strbuf: stop out-of-boundary warnings from Coverity

2015-06-18 Thread Duy Nguyen
On Wed, Jun 17, 2015 at 03:12:35PM -0400, Jeff King wrote: > On Wed, Jun 17, 2015 at 10:58:10AM -0700, Stefan Beller wrote: > > > > Just make strbuf_slopbuf[] large enough to keep Coverity happy. If it's > > > happy, we'll have cleaner defect list > > > > It's down 31 defects, roughly 10% of all

Ask for informations

2015-06-18 Thread Clément
Hey, I'm a french student from La Sorbonne, and as part of my Master Thesis I do a study on the configuration management tools. I try to make a comparison between many tools which includes Git. Could you take five minutes for reply to somes questions about the caracteristics of your product, it

[PATCH] git-multimail: update to release 1.1.0

2015-06-18 Thread Matthieu Moy
The changes are described in CHANGES. Contributions-by: Matthieu Moy Contributions-by: Richard Hansen Contributions-by: Michael Haggerty Contributions-by: Elijah Newren Contributions-by: Luke Mewburn Contributions-by: Dave Boutcher Contributions-by: Azat Khuzhin Contributions-by: Sebastian

Re: [PATCH/WIP v2 03/19] am: implement skeletal builtin am

2015-06-18 Thread Paul Tan
On Tue, Jun 16, 2015 at 1:54 AM, Junio C Hamano wrote: > Paul Tan writes: > >>> The scripted Porcelain is spawned after applying patches 1-3 from >>> here, when you do not have _GIT_USE_BUILTIN_AM exported. Haven't >>> RUN_SETUP code did its thing by that time? >> >> Ah right, the RUN_SETUP code

Re: [PATCH] mergetools: add config option to disable auto-merge

2015-06-18 Thread David Aguilar
On Wed, Jun 17, 2015 at 10:27:58PM -0400, Mike Rappazzo wrote: > On Wed, Jun 17, 2015 at 3:41 PM, Junio C Hamano wrote: > > Michael Rappazzo writes: > > > >> For some mergetools, the current invocation of git mergetool will > >> include an auto-merge flag. By default the flag is included, howeve

Re: Git completion not using ls-remote to auto-complete during push

2015-06-18 Thread Stefan Näwe
Am 17.06.2015 um 18:10 schrieb Robert Dailey: > I do the following: > > $ git push origin :topic > > If I stop halfway through typing 'topic' and hit TAB, auto-completion > does not work if I do not have a local branch by that name (sometimes > I delete my local branch first, then I push to delet

Re: [PATCH v2] git-checkout.txt: Document "git checkout " better

2015-06-18 Thread Matthieu Moy
Junio C Hamano writes: > I think "restore" also by definition has to go back to _some_ > existing version, not a future yet-to-be-created one, so "restore to > some previous state" is superfluous; That's why I found "restore recorded state" not too bad. > "restore working tree files" Not a nat

<    1   2