Re: [PATCH v6 0/6] stash: support pathspec argument

2017-02-19 Thread Jeff King
On Sun, Feb 19, 2017 at 11:03:07AM +, Thomas Gummerer wrote: > Thanks Junio and Peff for comments on the last round. > > Changes since then: > > - removed mention of the "new form" of git stash create from the > Documentation. > - Changed documentation for git stash without a verb,

Re: git-scm.com status report

2017-02-19 Thread Jeff King
On Sat, Feb 18, 2017 at 10:27:51PM +, pedro rijo wrote: > I would say everyone did an amazing job, closing more than 150 old issues > in a single week! I think the amount of issues is finally manageable (40 > issues currently). Yes, thank you to all who have been helping. But especially you

Re: Git bisect does not find commit introducing the bug

2017-02-19 Thread Oleg Taranenko
>>> Then you must adjust your definition of "good": All commits that do not have >>> the feature, yet, are "good": since they do not have the feature in the >>> first place, they cannot have the breakage that you found in the feature. >>> >>> That is exactly the situation in your original example!

Re: [RFC PATCH] show decorations at the end of the line

2017-02-19 Thread Linus Torvalds
On Sun, Feb 19, 2017 at 4:46 PM, Jeff King wrote: > > I think there are two potential patches: > > 1. Add a custom-format placeholder for the --source value. > This is an obvious improvement that doesn't hurt anyone. Right. > 2. Switch --decorate to the end by default,

Re: [RFC PATCH] show decorations at the end of the line

2017-02-19 Thread Junio C Hamano
Jeff King writes: > I think there are two potential patches: > > 1. Add a custom-format placeholder for the --source value. > This is an obvious improvement that doesn't hurt anyone. > > 2. Switch --decorate to the end by default, but _not_ --source. > > This use

Re: [RFC PATCH] show decorations at the end of the line

2017-02-19 Thread Jeff King
On Sun, Feb 19, 2017 at 03:03:21PM -0800, Jacob Keller wrote: > >> I just got bitten by a fallout. I have > >> > >> $ git recent --help > >> `git recent' is aliased to `log --oneline --branches --no-merges \ > >> --source --since=3.weeks' > >> > >> but now the branch names are

Re: [PATCH v2] git-check-ref-format: clarify man for --normalize

2017-02-19 Thread Jeff King
On Sun, Feb 19, 2017 at 11:32:32PM +0100, Damien Regad wrote: > Use of 'iff' may be confusing to people not familiar with this term. > > Improving the --normalize option's documentation to remove the use of > 'iff', and clearly describe what happens when the condition is not met. Looks good to

[PATCH v4 03/19] builtin/diff-tree: convert to struct object_id

2017-02-19 Thread brian m. carlson
Convert most leaf functions to struct object_id. Change several hardcoded numbers to uses of parse_oid_hex. In doing so, verify that we when we want two trees, we have exactly two trees. Finally, in stdin_diff_commit, avoid accessing the byte after the NUL. This will be a NUL as well, since the

[PATCH v4 11/19] Convert remaining callers of resolve_refdup to object_id

2017-02-19 Thread brian m. carlson
There are a few leaf functions in various files that call resolve_refdup. Convert these functions to use struct object_id internally to prepare for transitioning resolve_refdup itself. Signed-off-by: brian m. carlson --- builtin/notes.c| 18

[PATCH v4 10/19] builtin/merge: convert to struct object_id

2017-02-19 Thread brian m. carlson
Additionally convert several uses of the constant 40 into GIT_SHA1_HEXSZ. Signed-off-by: brian m. carlson --- builtin/merge.c | 134 1 file changed, 66 insertions(+), 68 deletions(-) diff --git

[PATCH v4 07/19] builtin/grep: convert to struct object_id

2017-02-19 Thread brian m. carlson
Convert several functions to use struct object_id, and rename them so that they no longer refer to SHA-1. Signed-off-by: brian m. carlson --- builtin/grep.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git

[PATCH v4 13/19] reflog-walk: convert struct reflog_info to struct object_id

2017-02-19 Thread brian m. carlson
Convert struct reflog_info to use struct object_id by changing the structure definition and applying the following semantic patch: @@ struct reflog_info E1; @@ - E1.osha1 + E1.ooid.hash @@ struct reflog_info *E1; @@ - E1->osha1 + E1->ooid.hash @@ struct reflog_info E1; @@ - E1.nsha1 +

[PATCH v4 04/19] builtin/describe: convert to struct object_id

2017-02-19 Thread brian m. carlson
Convert the functions in this file and struct commit_name to struct object_id. Signed-off-by: brian m. carlson --- builtin/describe.c | 50 +- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git

[PATCH v4 02/19] builtin/commit: convert to struct object_id

2017-02-19 Thread brian m. carlson
Convert most leaf functions to use struct object_id. Signed-off-by: brian m. carlson --- builtin/commit.c | 46 +++--- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/builtin/commit.c b/builtin/commit.c index

[PATCH v4 18/19] builtin/merge-base: convert to struct object_id

2017-02-19 Thread brian m. carlson
Convert the remaining uses of unsigned char [20] to struct object_id. Signed-off-by: brian m. carlson --- builtin/merge-base.c | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/builtin/merge-base.c

[PATCH v4 00/19] object_id part 6

2017-02-19 Thread brian m. carlson
This is another series in the continuing conversion to struct object_id. This series converts more of the builtin directory and some of the refs code to use struct object_id. Additionally, it implements an nth_packed_object_oid function which provides a struct object_id version of the

[PATCH v4 16/19] sha1_file: introduce an nth_packed_object_oid function

2017-02-19 Thread brian m. carlson
There are places in the code where we would like to provide a struct object_id *, yet read the hash directly from the pack. Provide an nth_packed_object_oid function that is similar to the nth_packed_object_sha1 function. In order to avoid a potentially invalid cast, nth_packed_object_oid

[PATCH v4 08/19] builtin/branch: convert to struct object_id

2017-02-19 Thread brian m. carlson
Signed-off-by: brian m. carlson --- builtin/branch.c | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/builtin/branch.c b/builtin/branch.c index 9d30f55b0b..faf472ff8f 100644 --- a/builtin/branch.c +++

[PATCH v4 01/19] hex: introduce parse_oid_hex

2017-02-19 Thread brian m. carlson
Introduce a function, parse_oid_hex, which parses a hexadecimal object ID and if successful, sets a pointer to just beyond the last character. This allows for simpler, more robust parsing without needing to hard-code integer values throughout the codebase. Signed-off-by: brian m. carlson

[PATCH v4 17/19] Convert object iteration callbacks to struct object_id

2017-02-19 Thread brian m. carlson
Convert each_loose_object_fn and each_packed_object_fn to take a pointer to struct object_id. Update the various callbacks. Convert several 40-based constants to use GIT_SHA1_HEXSZ. Signed-off-by: brian m. carlson --- builtin/cat-file.c | 8

[PATCH v4 06/19] builtin/fmt-merge-message: convert to struct object_id

2017-02-19 Thread brian m. carlson
Convert most of the code to use struct object_id, including struct origin_data and struct merge_parents. Convert several instances of hardcoded numbers into references to GIT_SHA1_HEXSZ. Signed-off-by: brian m. carlson --- builtin/fmt-merge-msg.c | 70

[PATCH v4 19/19] wt-status: convert to struct object_id

2017-02-19 Thread brian m. carlson
Convert the remaining uses of unsigned char [20] to struct object_id. Signed-off-by: brian m. carlson --- wt-status.c | 44 ++-- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/wt-status.c b/wt-status.c index

[PATCH v4 12/19] builtin/replace: convert to struct object_id

2017-02-19 Thread brian m. carlson
Convert various uses of unsigned char [20] to struct object_id. Rename replace_object_sha1 to replace_object_oid. Finally, specify a constant in terms of GIT_SHA1_HEXSZ. Signed-off-by: brian m. carlson --- builtin/replace.c | 112

[PATCH v4 14/19] refs: convert each_reflog_ent_fn to struct object_id

2017-02-19 Thread brian m. carlson
Make each_reflog_ent_fn take two struct object_id pointers instead of two pointers to unsigned char. Convert the various callbacks to use struct object_id as well. Also, rename fsck_handle_reflog_sha1 to fsck_handle_reflog_oid. Signed-off-by: brian m. carlson ---

[PATCH v4 09/19] builtin/clone: convert to struct object_id

2017-02-19 Thread brian m. carlson
Signed-off-by: brian m. carlson --- builtin/clone.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/builtin/clone.c b/builtin/clone.c index 3f63edbbf9..b4c929bb8a 100644 --- a/builtin/clone.c +++ b/builtin/clone.c @@ -681,7 +681,7 @@

[PATCH v4 05/19] builtin/fast-export: convert to struct object_id

2017-02-19 Thread brian m. carlson
In addition to converting to struct object_id, write some hardcoded buffer sizes in terms of GIT_SHA1_RAWSZ. Signed-off-by: brian m. carlson --- builtin/fast-export.c | 58 +-- 1 file changed, 29 insertions(+), 29

[PATCH v4 15/19] refs: simplify parsing of reflog entries

2017-02-19 Thread brian m. carlson
The current code for reflog entries uses a lot of hard-coded constants, making it hard to read and modify. Use parse_oid_hex and two temporary variables to simplify the code and reduce the use of magic constants. Signed-off-by: brian m. carlson ---

Re: [RFC PATCH] show decorations at the end of the line

2017-02-19 Thread Jacob Keller
On Sun, Feb 19, 2017 at 2:33 PM, Linus Torvalds wrote: > On Fri, Feb 17, 2017 at 9:27 PM, Junio C Hamano wrote: >> >> I just got bitten by a fallout. I have >> >> $ git recent --help >> `git recent' is aliased to `log --oneline

Re: [RFC PATCH] show decorations at the end of the line

2017-02-19 Thread Linus Torvalds
On Fri, Feb 17, 2017 at 9:27 PM, Junio C Hamano wrote: > > I just got bitten by a fallout. I have > > $ git recent --help > `git recent' is aliased to `log --oneline --branches --no-merges \ > --source --since=3.weeks' > > but now the branch names are shown at

[PATCH v2] git-check-ref-format: clarify man for --normalize

2017-02-19 Thread Damien Regad
Use of 'iff' may be confusing to people not familiar with this term. Improving the --normalize option's documentation to remove the use of 'iff', and clearly describe what happens when the condition is not met. --- Documentation/git-check-ref-format.txt | 6 +++--- 1 file changed, 3

Re: [PATCH] git-check-ref-format: fix typo in man page

2017-02-19 Thread Damien Regad
Thanks all for the feedback. On 2017-02-19 21:40, Philip Oakley wrote: > For those not familiar with 'iff', then a change to the doc is worthwhile. Exactly. Not being a native English speaker, I had never seen 'iff' used before. Now that you guys have pointed me to its meaning I guess it makes

[PATCH] Documentation: Link git-ls-files to core.quotePath variable.

2017-02-19 Thread Andreas Heiduk
Add a hint for script writers where additional quoting can be configured. Signed-off-by: Andreas Heiduk --- Documentation/git-ls-files.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/git-ls-files.txt b/Documentation/git-ls-files.txt

Re: [PATCH 3/5] name-hash: precompute hash values during preload-index

2017-02-19 Thread Junio C Hamano
Jeff Hostetler writes: > I looked at doing this, but I didn't think the complexity and overhead to > forward search for peers at the current level didn't warrant the limited > gains. It seems that I wasn't clear what I meant. I didn't mean anything complex like

Re: [PATCH 0/5] A series of performance enhancements in the memihash and name-cache area

2017-02-19 Thread Junio C Hamano
Jeff Hostetler writes: >> But the other Jeff sounded like a follow-up was to follow shortly if >> not imminent so I decided to allocate my time on other topics still >> only on the list first while waiting to see what happens. > > Sorry, I was out of the office for

Re: [PATCH v2] l10n: de.po: translate 241 messages

2017-02-19 Thread Phillip Sz
Acked-by: Phillip Sz > Signed-off-by: Ralf Thielow > --- > po/de.po | 750 > ++- > 1 file changed, 409 insertions(+), 341 deletions(-) > > diff --git a/po/de.po b/po/de.po > index

url..insteadOf vs. submodules

2017-02-19 Thread Toolforger
Hi all, I am trying to make url..insteadOf work on the URLs inside .gitmodules, but it won't work (applying it to the repo itself works fine, to the config setting seems to be fine). I do not want to modify .gitmodules: It is maintained upstream. I cannot simply reconfigure submodule..url:

Fast Loans

2017-02-19 Thread Service Loans
Do you need a loan to pay up bill or to start a business? Email Us

Re: [PATCH] git-check-ref-format: fix typo in man page

2017-02-19 Thread Philip Oakley
From: "Jeff King" On Sun, Feb 19, 2017 at 12:20:33AM -, Philip Oakley wrote: > Normalize 'refname' by removing any leading slash (`/`) > characters and collapsing runs of adjacent slashes between > - name components into a single slash. Iff the normalized > + name

Draft of Git Rev News edition 24

2017-02-19 Thread Christian Couder
Hi, A draft of a new Git Rev News edition is available here: https://github.com/git/git.github.io/blob/master/rev_news/drafts/edition-24.md Everyone is welcome to contribute in any section either by editing the above page on GitHub and sending a pull request, or by commenting on this GitHub

Re: Git bisect does not find commit introducing the bug

2017-02-19 Thread Jacob Keller
On Sun, Feb 19, 2017 at 11:05 AM, Alex Hoffman wrote: >> Then you must adjust your definition of "good": All commits that do not have >> the feature, yet, are "good": since they do not have the feature in the >> first place, they cannot have the breakage that you found in the

Re: Git bisect does not find commit introducing the bug

2017-02-19 Thread Alex Hoffman
> Then you must adjust your definition of "good": All commits that do not have > the feature, yet, are "good": since they do not have the feature in the > first place, they cannot have the breakage that you found in the feature. > > That is exactly the situation in your original example! But you

Re: new git-diff switch to eliminate leading "+" and "-" characters

2017-02-19 Thread Junio C Hamano
"Vanderhoof, Tzadik" writes: >> From: Duy Nguyen [mailto:pclo...@gmail.com] >> >> I face this "problem" every day, but most editors nowadays have block- >> based editing that would allow you to remove a column of "+/-" >> easily. At least it has not bothered me

[PATCH v2] l10n: de.po: translate 241 messages

2017-02-19 Thread Ralf Thielow
Translate 241 messages came from git.pot update in 673bfad09 (l10n: git.pot: v2.12.0 round 1 (239 new, 15 removed)) and a4d94835a (l10n: git.pot: v2.12.0 round 2 (2 new)). Signed-off-by: Ralf Thielow --- po/de.po | 750

Re: [PATCH] l10n: de.po: translate 241 messages

2017-02-19 Thread Ralf Thielow
Hi Phillip, thanks for review! Am 17. Februar 2017 um 22:56 schrieb Phillip Sz : >> #: remote.c:2092 >> #, c-format >> msgid "Your branch is ahead of '%s' by %d commit.\n" >> msgid_plural "Your branch is ahead of '%s' by %d commits.\n" >> -msgstr[0] "Ihr Branch ist

Re: Git bisect does not find commit introducing the bug

2017-02-19 Thread Johannes Sixt
Am 19.02.2017 um 12:32 schrieb Alex Hoffman: The assumption that there is no transition from bad to good in the graph did not hold in my example and it does not hold when a feature was recently introduced and gets broken relative shortly afterwards. Then you must adjust your definition of

Re: Git bisect does not find commit introducing the bug

2017-02-19 Thread Christian Couder
On Sun, Feb 19, 2017 at 12:32 PM, Alex Hoffman wrote: >> At the end of the git-bisect man page (in the SEE ALSO section) there >> is a link to >> https://github.com/git/git/blob/master/Documentation/git-bisect-lk2009.txt >> which has a lot of details about how bisect works. > >

Re: Git bisect does not find commit introducing the bug

2017-02-19 Thread Alex Hoffman
Below is a correction of the first proposed algorithm: >--o1--o2--o3--G --X1 >\\ > x1--x2--x3--x4--X2--B-- > \ / > y1--y2--y3 > Step 1a. (Unchanged) keep only the commits that: a) are ancestor of the "bad" commit (including the "bad" commit

Re: Git bisect does not find commit introducing the bug

2017-02-19 Thread Alex Hoffman
> At the end of the git-bisect man page (in the SEE ALSO section) there > is a link to > https://github.com/git/git/blob/master/Documentation/git-bisect-lk2009.txt > which has a lot of details about how bisect works. > Thanks for pointing out the SEE ALSO section. I think it makes sense to

[PATCH v6 6/6] stash: allow pathspecs in the no verb form

2017-02-19 Thread Thomas Gummerer
Now that stash_push is used in the no verb form of stash, allow specifying the command line for this form as well. Always use -- to disambiguate pathspecs from other non-option arguments. Also make git stash -p an alias for git stash push -p. This allows users to use git stash -p .

[PATCH v6 1/6] stash: introduce push verb

2017-02-19 Thread Thomas Gummerer
Introduce a new git stash push verb in addition to git stash save. The push verb is used to transition from the current command line arguments to a more conventional way, in which the message is given as an argument to the -m option. This allows us to have pathspecs at the end of the command

[PATCH v6 3/6] stash: refactor stash_create

2017-02-19 Thread Thomas Gummerer
Refactor the internal stash_create function to use a -m flag for specifying the message and -u flag to indicate whether untracked files should be added to the stash. This makes it easier to pass a pathspec argument to stash_create in the next patch. The user interface for git stash create stays

[PATCH v6 4/6] stash: teach 'push' (and 'create_stash') to honor pathspec

2017-02-19 Thread Thomas Gummerer
While working on a repository, it's often helpful to stash the changes of a single or multiple files, and leave others alone. Unfortunately git currently offers no such option. git stash -p can be used to work around this, but it's often impractical when there are a lot of changes over multiple

[PATCH v6 5/6] stash: use stash_push for no verb form

2017-02-19 Thread Thomas Gummerer
Now that we have stash_push, which accepts pathspec arguments, use it instead of stash_save in git stash without any additional verbs. Previously we allowed git stash -- -message, which is no longer allowed after this patch. Messages starting with a hyphen was allowed since 3c2eb80f, ("stash:

[PATCH v6 2/6] stash: add test for the create command line arguments

2017-02-19 Thread Thomas Gummerer
Currently there is no test showing the expected behaviour of git stash create's command line arguments. Add a test for that to show the current expected behaviour and to make sure future refactorings don't break those expectations. Signed-off-by: Thomas Gummerer ---

[PATCH v6 0/6] stash: support pathspec argument

2017-02-19 Thread Thomas Gummerer
Thanks Junio and Peff for comments on the last round. Changes since then: - removed mention of the "new form" of git stash create from the Documentation. - Changed documentation for git stash without a verb, mentioning stash -p now being an alias for git stash push -p and that -- can be

Re: [PATCH v5 6/6] stash: allow pathspecs in the no verb form

2017-02-19 Thread Thomas Gummerer
On 02/17, Jeff King wrote: > On Fri, Feb 17, 2017 at 10:41:41PM +, Thomas Gummerer wrote: > > > Now that stash_push is used in the no verb form of stash, allow > > specifying the command line for this form as well. Always use -- to > > disambiguate pathspecs from other non-option arguments.

Re: [PATCH v5 3/6] stash: refactor stash_create

2017-02-19 Thread Thomas Gummerer
On 02/17, Jeff King wrote: > On Fri, Feb 17, 2017 at 10:41:38PM +, Thomas Gummerer wrote: > > > Refactor the internal stash_create function to use a -m flag for > > specifying the message and -u flag to indicate whether untracked files > > should be added to the stash. > > > > This makes it

Benefit

2017-02-19 Thread Mrs Julie Leach
You are a recipient to Mrs Julie Leach Donation of $3 million USD. Contact ( julieleac...@gmail.com ) for claims.