Re: [PATCH v4] clone: simplify string handling in guess_dir_name()

2015-08-03 Thread Lukas Fleischer
On Thu, 09 Jul 2015 at 20:24:08, Sebastian Schuberth wrote: > Signed-off-by: Sebastian Schuberth > --- > builtin/clone.c | 17 + > 1 file changed, 5 insertions(+), 12 deletions(-) > > diff --git a/builtin/clone.c b/builtin/clone.c > index 00535d0..ebcb849 100644 > --- a/builtin/c

Re: Question: .idx without .pack causes performance issues?

2015-08-03 Thread Junio C Hamano
Doug Kelly writes: > Here's a change to prune.c that at least addresses the issue by removing > .idx files without an associated pack, but it's by no means pretty. If anyone > has any feedback before I turn this into a formal patch, it's more than > welcome! I'd hesitate to see removal of a fi

Re: What's cooking in git.git (Aug 2015, #01; Mon, 3)

2015-08-03 Thread Junio C Hamano
Paul Tan writes: > I'm thinking about leaving them broken for now to push this patch > series forward,... Options upon restarting was not working at all with the old code anyway, so that course of action sounds sensible. Thanks. -- To unsubscribe from this list: send the line "unsubscribe git"

Re: What's cooking in git.git (Aug 2015, #01; Mon, 3)

2015-08-03 Thread Junio C Hamano
Eric Sunshine writes: > On Mon, Aug 3, 2015 at 6:18 PM, Junio C Hamano wrote: >> I've kicked a few topics out of 'next' back to 'pu' for now. >> - I think es/worktree-add and es/worktree-add-cleanup are good >>shape overall, but we probably would want to make them into a >>single topic.

Re: [PATCH v2] remote: add get-url subcommand

2015-08-03 Thread Eric Sunshine
On Mon, Aug 3, 2015 at 8:16 PM, Ben Boeckel wrote: > On Mon, Aug 03, 2015 at 19:38:15 -0400, Eric Sunshine wrote: >> On Mon, Aug 3, 2015 at 5:00 PM, Ben Boeckel wrote: >> > + argc = parse_options(argc, argv, NULL, options, >> > builtin_remote_geturl_usage, >> > +

Re: What's cooking in git.git (Aug 2015, #01; Mon, 3)

2015-08-03 Thread Paul Tan
On Tue, Aug 4, 2015 at 6:18 AM, Junio C Hamano wrote: > - I think pt/am-builtin is more or less ready, but the fix to the >issue that options given to 'git am' when restarting were >rejected must be queued on that topic before we can start >thinking of merging it to 'master' for the n

Re: [PATCH v2] remote: add get-url subcommand

2015-08-03 Thread Ben Boeckel
On Mon, Aug 03, 2015 at 19:38:15 -0400, Eric Sunshine wrote: > On Mon, Aug 3, 2015 at 5:00 PM, Ben Boeckel wrote: > > + OPT_BOOL('\0', "push", &push_mode, > > +N_("query push URLs")), > > A bit more explanatory: > > "query push URLs rather than fetch URL

Re: [PATCH v2 00/10] object_id part 2

2015-08-03 Thread brian m. carlson
On Mon, Aug 03, 2015 at 01:33:56AM +0200, Michael Haggerty wrote: > Brian, what was your experience when writing these patches? Did they > tend to work as soon as they compiled without errors (i.e., not super > risky) or did you often have test suite failures that you had to go back > and fix (i.e.

Re: [PATCH v2] remote: add get-url subcommand

2015-08-03 Thread Eric Sunshine
On Mon, Aug 3, 2015 at 5:00 PM, Ben Boeckel wrote: > Expanding `insteadOf` is a part of ls-remote --url and there is no way > to expand `pushInsteadOf` as well. Add a get-url subcommand to be able > to query both as well as a way to get all configured urls. > > Signed-off-by: Ben Boeckel > --- >

Re: [PATCH/RFC 0/2] bisect per-worktree

2015-08-03 Thread David Turner
On Tue, 2015-08-04 at 06:09 +0700, Duy Nguyen wrote: > On Tue, Aug 4, 2015 at 2:49 AM, David Turner wrote: > > Simply treating refs/worktree as per-worktree, while the rest of refs/ > > is not, would be a few dozen lines of code. The full remapping approach > > is likely to be a lot more. I've al

Re: [PATCH/RFC 0/2] bisect per-worktree

2015-08-03 Thread Duy Nguyen
On Tue, Aug 4, 2015 at 2:49 AM, David Turner wrote: > Simply treating refs/worktree as per-worktree, while the rest of refs/ > is not, would be a few dozen lines of code. The full remapping approach > is likely to be a lot more. I've already got the lmdb backend working > with something like this

Re: [PATCH v5 1/2] worktrees: add find_shared_symref

2015-08-03 Thread Eric Sunshine
On Mon, Aug 3, 2015 at 2:48 PM, David Turner wrote: > Add a new function, find_shared_symref, which contains the heart of > die_if_checked_out, but works for any symref, not just HEAD. Refactor > die_if_checked_out to use the same infrastructure as > find_shared_symref. > > Soon, we will use find

[PATCH] submodule: implement `module_list` as a builtin helper

2015-08-03 Thread Stefan Beller
Most of the submodule operations work on a set of submodules. Calculating and using this set is usually done via: module_list "$@" | { while read mode sha1 stage sm_path do # the actual operation done } Currently the function `module_

Re: [PATCH] builtin/mv: Get rid of the last caller of get_pathspec

2015-08-03 Thread Eric Sunshine
On Mon, Aug 3, 2015 at 1:53 PM, Stefan Beller wrote: > `get_pathspec` is deprecated and builtin/mv is its last caller, so getting > rid of `get_pathspec` is rather easy. By getting rid of `get_pathspec`, > the documentation such as 'technical/api-setup.txt' becomes easier to read > as the reader d

Re: What's cooking in git.git (Aug 2015, #01; Mon, 3)

2015-08-03 Thread Eric Sunshine
On Mon, Aug 3, 2015 at 6:18 PM, Junio C Hamano wrote: > I've kicked a few topics out of 'next' back to 'pu' for now. > - I think es/worktree-add and es/worktree-add-cleanup are good >shape overall, but we probably would want to make them into a >single topic. Is there anything I need to

[PATCH] untracked-cache: fix subdirectory handling

2015-08-03 Thread David Turner
Previously, some calls lookup_untracked would pass a full path. But lookup_untracked assumes that the portion of the path up to and including to the untracked_cache_dir has been removed. So lookup_untracked would be looking in the untracked_cache for 'foo' for 'foo/bar' (instead of just looking f

[ANNOUNCE] Git v2.4.8

2015-08-03 Thread Junio C Hamano
A maintenance release Git v2.4.8 is now available at the usual places. This contains remaining fixes that are in v2.5 but have been lacking in 2.4.x maintenance track so far. It will hopefully be the last 2.4.x update at least for now. The tarballs are found at: https://www.kernel.org/pub/s

What's cooking in git.git (Aug 2015, #01; Mon, 3)

2015-08-03 Thread Junio C Hamano
Here are the topics that have been cooking. Commits prefixed with '-' are only in 'pu' (proposed updates) while commits prefixed with '+' are in 'next'. Accumulated fixes went to a new maintenance release 2.4.8. The first batch of the post-2.5 development cycle has been merged to 'master', and t

Re: Question: .idx without .pack causes performance issues?

2015-08-03 Thread Doug Kelly
On Tue, Jul 21, 2015 at 4:37 PM, Doug Kelly wrote: > On Tue, Jul 21, 2015 at 3:48 PM, Junio C Hamano wrote: >> Junio C Hamano writes: >> >>> While I still think that it is more important to prevent such a >>> situation from occurring in the first place, ignoring .idx that lack >>> corresponding

Re: [PATCH v8 0/11] Port tag.c over to use ref-filter APIs

2015-08-03 Thread Karthik Nayak
On Tue, Aug 4, 2015 at 3:38 AM, Junio C Hamano wrote: > Karthik Nayak writes: > >> On Tue, Aug 4, 2015 at 1:51 AM, Junio C Hamano wrote: >> ... >>> It is very very dissapointing to allow the "next atom only" >>> implementation to squat on a good name "align:,", >>> especially when I thought that

Re: [RFC/PATCH 1/2] submodule: implement `module_list` as a builtin helper

2015-08-03 Thread Stefan Beller
On Mon, Aug 3, 2015 at 3:04 PM, Junio C Hamano wrote: > Stefan Beller writes: > >> On Fri, Jul 31, 2015 at 6:01 PM, Junio C Hamano wrote: >>> Stefan Beller writes: >>> +static const char * const git_submodule_helper_usage[] = { + N_("git submodule--helper --module_list [...]"), >>

Re: [PATCH v8 0/11] Port tag.c over to use ref-filter APIs

2015-08-03 Thread Junio C Hamano
Karthik Nayak writes: > On Tue, Aug 4, 2015 at 1:51 AM, Junio C Hamano wrote: > ... >> It is very very dissapointing to allow the "next atom only" >> implementation to squat on a good name "align:,", >> especially when I thought that the list agreed >> >> %(align:,) any string with or without

Re: [RFC/PATCH 1/2] submodule: implement `module_list` as a builtin helper

2015-08-03 Thread Junio C Hamano
Stefan Beller writes: > On Fri, Jul 31, 2015 at 6:01 PM, Junio C Hamano wrote: >> Stefan Beller writes: >> >>> +static const char * const git_submodule_helper_usage[] = { >>> + N_("git submodule--helper --module_list [...]"), >> >> Yuck. Please do not force --multi_word_opt upon us, which

Re: [PATCH v8 02/11] ref-filter: introduce ref_formatting_state

2015-08-03 Thread Karthik Nayak
On Tue, Aug 4, 2015 at 2:12 AM, Junio C Hamano wrote: > Karthik Nayak writes: > >> Introduce a ref_formatting_state which will eventually hold the values >> of modifier atoms. Implement this within ref-filter. >> >> Mentored-by: Christian Couder >> Mentored-by: Matthieu Moy >> Signed-off-by: Ka

[PATCH] submodule: implement `module_list` as a builtin helper

2015-08-03 Thread Stefan Beller
Most of the submodule operations work on a set of submodules. Calculating and using this set is usually done via: module_list "$@" | { while read mode sha1 stage sm_path do # the actual operation done } Currently the function `module_

Re: Draft of Git Rev News edition 6

2015-08-03 Thread Thomas Ferris Nicolaisen
On Mon, Aug 3, 2015 at 11:16 PM, Junio C Hamano wrote: >> I hope we can attract more contributors in the future, so the weight >> of this doesn't lie too much on his shoulders. Perhaps we should send >> out the draft earlier next time, and beckon for more contributions >> from the list. > > Yeah,

Re: [RFC/PATCH 1/2] submodule: implement `module_list` as a builtin helper

2015-08-03 Thread Junio C Hamano
Stefan Beller writes: >> $ git submodule--helper module_list > > Why would you use an underscore in here as opposed to a dash? Simply because the diff would be easier to read; the callers used to call module_list shell function, now they call the subcommand with the same name of submodule--h

Re: [RFC/PATCH 1/2] submodule: implement `module_list` as a builtin helper

2015-08-03 Thread Stefan Beller
On Fri, Jul 31, 2015 at 6:01 PM, Junio C Hamano wrote: > Stefan Beller writes: > >> +static const char * const git_submodule_helper_usage[] = { >> + N_("git submodule--helper --module_list [...]"), > > Yuck. Please do not force --multi_word_opt upon us, which is simply > too ugly to live aro

Re: [PATCH v5 1/2] submodule refactor: use git_path_submodule() in add_submodule_odb()

2015-08-03 Thread Junio C Hamano
Max Kirillov writes: Here is a space to describe why this change is a good thing. Is this a fix to change the behaviour, and if so how is the behaviour different with and without the patch? Or is this just to drop the block of code from here and replace it with a call to an existing helper that

Re: [PATCH v8 01/11] ref-filter: print output to strbuf for formatting

2015-08-03 Thread Karthik Nayak
On Tue, Aug 4, 2015 at 2:06 AM, Junio C Hamano wrote: > Karthik Nayak writes: > >> Introduce a strbuf `output` which will act as a substitute rather than >> printing directly to stdout. This will be used for formatting >> eventually. >> --- > > Missing sign-off; the patch looks like a good first

Re: [PATCH v8 0/11] Port tag.c over to use ref-filter APIs

2015-08-03 Thread Karthik Nayak
On Tue, Aug 4, 2015 at 1:51 AM, Junio C Hamano wrote: > Karthik Nayak writes: > >> This is part of my GSoC project to unify git tag -l, git branch -l, >> git for-each-ref. This patch series is continued from: Git (next) >> https://github.com/git/git/commit/bf5418f49ff0cebc6e5ce04ad1417e1a47c81b6

Windows 7 - long/short and upper/lower filename

2015-08-03 Thread JoséQuintas
I am using Windows 7 64 bits. 1) I have a filename called ze_xmlfun.prg Last week gitgui shows 2 changed files: ZE_XML~1.PRG and ze_xmlfun.prg At momment I can't update this file, because get a error. Try delete file, update one name each time, but same error. Seems that a unique file is conside

Re: Draft of Git Rev News edition 6

2015-08-03 Thread Junio C Hamano
Thomas Ferris Nicolaisen writes: > I hope we can attract more contributors in the future, so the weight > of this doesn't lie too much on his shoulders. Perhaps we should send > out the draft earlier next time, and beckon for more contributions > from the list. Yeah, that is probably a good idea

Re: [PATCH/RFC 0/2] bisect per-worktree

2015-08-03 Thread Junio C Hamano
David Turner writes: > I think making this configurable is (a) overkill and (b) dangerous. > It's dangerous because the semantics of which refs are per-worktree is > important to the correct operation of git, and allowing users to mess > with it seems like a big mistake. Instead, we should figur

[PATCH v5 2/2] path: implement common_dir handling in git_path_submodule()

2015-08-03 Thread Max Kirillov
This allows making submodules a linked workdirs. Same as for .git, but ignores the GIT_COMMON_DIR environment variable, because it would mean common directory for the parent repository and does not make sense for submodule. Also add test for functionality which uses this call. Signed-off-by: Max

[PATCH v5 1/2] submodule refactor: use git_path_submodule() in add_submodule_odb()

2015-08-03 Thread Max Kirillov
Signed-off-by: Max Kirillov --- submodule.c | 28 ++-- 1 file changed, 10 insertions(+), 18 deletions(-) diff --git a/submodule.c b/submodule.c index 15e90d1..f6afe0a 100644 --- a/submodule.c +++ b/submodule.c @@ -122,43 +122,35 @@ void stage_updated_gitmodules(void) s

[PATCH v5 0/2] path: implement common_dir handling in git_path_submodule()

2015-08-03 Thread Max Kirillov
Rebased to latest master, also merges cleanly to pu. Otherwise no changes. Max Kirillov (2): submodule refactor: use git_path_submodule() in add_submodule_odb() path: implement common_dir handling in git_path_submodule() cache.h | 1 + path.c

[PATCH v2] remote: add get-url subcommand

2015-08-03 Thread Ben Boeckel
Expanding `insteadOf` is a part of ls-remote --url and there is no way to expand `pushInsteadOf` as well. Add a get-url subcommand to be able to query both as well as a way to get all configured urls. Signed-off-by: Ben Boeckel --- Documentation/git-remote.txt | 10 builtin/remote.c

[PATCH v2] add git-url subcommand

2015-08-03 Thread Ben Boeckel
Implements a get-url subcommand to git-remote which allows for querying the URLs for a remote while expanding insteadOf and pushInsteadOf. --Ben Ben Boeckel (1): remote: add get-url subcommand Documentation/git-remote.txt | 10 builtin/remote.c | 55 ++

Re: Draft of Git Rev News edition 6

2015-08-03 Thread Thomas Ferris Nicolaisen
On Mon, Aug 3, 2015 at 10:07 PM, Junio C Hamano wrote: > Thanks; it seems that the review section is rather thin. No new and > interesting changes worth reviewing in the entire month of July? Of course there are, but I can only put in a few hours, and that goes into the links-section. The newsle

Re: [PATCH v5 2/5] refs: add ref_type function

2015-08-03 Thread David Turner
On Mon, 2015-08-03 at 20:55 +0700, Duy Nguyen wrote: > On Fri, Jul 31, 2015 at 1:06 PM, David Turner > wrote: > > Add a function ref_type, which categorizes refs as per-worktree, > > pseudoref, or normal ref. > > For per-worktree refs, you probably should follow common_list[] in > path.c because

Re: [PATCH v8 02/11] ref-filter: introduce ref_formatting_state

2015-08-03 Thread Junio C Hamano
Karthik Nayak writes: > Introduce a ref_formatting_state which will eventually hold the values > of modifier atoms. Implement this within ref-filter. > > Mentored-by: Christian Couder > Mentored-by: Matthieu Moy > Signed-off-by: Karthik Nayak > --- > ref-filter.c | 49

Re: [PATCH v8 01/11] ref-filter: print output to strbuf for formatting

2015-08-03 Thread Junio C Hamano
Karthik Nayak writes: > Introduce a strbuf `output` which will act as a substitute rather than > printing directly to stdout. This will be used for formatting > eventually. > --- Missing sign-off; the patch looks like a good first step in a nice direction. > ref-filter.c | 36 +

Re: [PATCH v8 0/11] Port tag.c over to use ref-filter APIs

2015-08-03 Thread Junio C Hamano
Karthik Nayak writes: > This is part of my GSoC project to unify git tag -l, git branch -l, > git for-each-ref. This patch series is continued from: Git (next) > https://github.com/git/git/commit/bf5418f49ff0cebc6e5ce04ad1417e1a47c81b61 > > This series consists of porting tag.c over to using the

Re: Draft of Git Rev News edition 6

2015-08-03 Thread Junio C Hamano
Thomas Ferris Nicolaisen writes: > A draft of Git Rev News edition 6 is available here: > > https://github.com/git/git.github.io/blob/master/rev_news/drafts/edition-6.md > > Everyone is welcome to contribute in any section, either by editing the > above page on GitHub and sending a pull request,

Re: [PATCH v1] send-email: provide whitelist of SMTP AUTH mechanisms

2015-08-03 Thread Junio C Hamano
Jan Viktorin writes: > I didn't find a way how to determine what mechanisms are supported by SASL. Ok, forget the suggested approach, then X-<. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://v

Re: [PATCH/RFC 0/2] bisect per-worktree

2015-08-03 Thread David Turner
On Sat, 2015-08-01 at 08:51 +0200, Michael Haggerty wrote: > On 08/01/2015 07:12 AM, Junio C Hamano wrote: > > On Fri, Jul 31, 2015 at 8:59 PM, Michael Haggerty > > wrote: > >> > >> It seems to me that adding a new top-level "worktree-refs" directory is > >> pretty traumatic. Lots of people and t

Re: [RFC/PATCH 2/2] Testing the new code

2015-08-03 Thread Junio C Hamano
Stefan Beller writes: > On Fri, Jul 31, 2015 at 6:02 PM, Junio C Hamano wrote: >> Stefan Beller writes: >> >>> -module_list() >>> +module_list_shell() >>> { >>> eval "set $(git rev-parse --sq --prefix "$wt_prefix" -- "$@")" >>> ( >>> @@ -187,6 +187,29 @@ module_list() >>> ' >

Re: [PATCH v2 5/6] clone: fix hostname parsing when guessing dir

2015-08-03 Thread Junio C Hamano
Jeff King writes: > On Mon, Aug 03, 2015 at 10:34:14AM +0200, Patrick Steinhardt wrote: > >> One more question for backwards compatibility remains then. >> Currently when we clone something like 'http://example.com:/' >> we'd create a git repository '' as we'd split on the first >> occurr

[PATCH v5 1/2] worktrees: add find_shared_symref

2015-08-03 Thread David Turner
Add a new function, find_shared_symref, which contains the heart of die_if_checked_out, but works for any symref, not just HEAD. Refactor die_if_checked_out to use the same infrastructure as find_shared_symref. Soon, we will use find_shared_symref to protect notes merges in worktrees. Signed-off

[PATCH v5 2/2] notes: handle multiple worktrees

2015-08-03 Thread David Turner
Before creating NOTES_MERGE_REF, check NOTES_MERGE_REF using find_shared_symref and die if we find one. This prevents simultaneous merges to the same notes branch from different worktrees. Signed-off-by: David Turner --- builtin/notes.c | 6 t/t3320-notes-merge-worktrees.

Re: [PATCH v4 2/2] notes: handle multiple worktrees

2015-08-03 Thread David Turner
On Sat, 2015-08-01 at 15:51 +0200, Johan Herland wrote: > On Sat, Aug 1, 2015 at 12:11 AM, David Turner > wrote: > > Before creating NOTES_MERGE_REF, check NOTES_MERGE_REF using > > find_shared_symref and die if we find one. This prevents simultaneous > > merges to the same notes branch from dif

[PATCH] builtin/mv: Get rid of the last caller of get_pathspec

2015-08-03 Thread Stefan Beller
`get_pathspec` is deprecated and builtin/mv is its last caller, so getting rid of `get_pathspec` is rather easy. By getting rid of `get_pathspec`, the documentation such as 'technical/api-setup.txt' becomes easier to read as the reader doesn't need to bear with the additional fact that `get_pathspe

[PATCH v8 11/11] tag.c: implement '--merged' and '--no-merged' options

2015-08-03 Thread Karthik Nayak
From: Karthik Nayak Using 'ref-filter' APIs implement the '--merged' and '--no-merged' options into 'tag.c'. The '--merged' option lets the user to only list tags merged into the named commit. The '--no-merged' option lets the user to only list tags not merged into the named commit. If no object

[PATCH v8 09/11] tag.c: use 'ref-filter' APIs

2015-08-03 Thread Karthik Nayak
From: Karthik Nayak Make 'tag.c' use 'ref-filter' APIs for iterating through refs, sorting and printing of refs. This removes most of the code used in 'tag.c' replacing it with calls to the 'ref-filter' library. Make 'tag.c' use the 'filter_refs()' function provided by 'ref-filter' to filter out

[PATCH v8 05/11] ref-filter: support printing N lines from tag annotation

2015-08-03 Thread Karthik Nayak
From: Karthik Nayak In 'tag.c' we can print N lines from the annotation of the tag using the '-n' option. Copy code from 'tag.c' to 'ref-filter' and modify 'ref-filter' to support printing of N lines from the annotation of tags. Mentored-by: Christian Couder Mentored-by: Matthieu Moy Signed-of

[PATCH v8 07/11] ref-filter: add option to match literal pattern

2015-08-03 Thread Karthik Nayak
From: Karthik Nayak Since 'ref-filter' only has an option to match path names add an option for plain fnmatch pattern-matching. This is to support the pattern matching options which are used in `git tag -l` and `git branch -l` where we can match patterns like `git tag -l foo*` which would match

[PATCH v8 08/11] tag.c: use 'ref-filter' data structures

2015-08-03 Thread Karthik Nayak
From: Karthik Nayak Make 'tag.c' use 'ref-filter' data structures and make changes to support the new data structures. This is a part of the process of porting 'tag.c' to use 'ref-filter' APIs. This is a temporary step before porting 'tag.c' to use 'ref-filter' completely. As this is a temporary

[PATCH v8 06/11] ref-filter: add support to sort by version

2015-08-03 Thread Karthik Nayak
From: Karthik Nayak Add support to sort by version using the "v:refname" and "version:refname" option. This is achieved by using the 'versioncmp()' function as the comparing function for qsort. This option is included to support sorting by versions in `git tag -l` which will eventaully be ported

[PATCH v8 02/11] ref-filter: introduce ref_formatting_state

2015-08-03 Thread Karthik Nayak
Introduce a ref_formatting_state which will eventually hold the values of modifier atoms. Implement this within ref-filter. Mentored-by: Christian Couder Mentored-by: Matthieu Moy Signed-off-by: Karthik Nayak --- ref-filter.c | 49 + ref-filter.h

[PATCH v8 01/11] ref-filter: print output to strbuf for formatting

2015-08-03 Thread Karthik Nayak
Introduce a strbuf `output` which will act as a substitute rather than printing directly to stdout. This will be used for formatting eventually. --- ref-filter.c | 36 ++-- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/ref-filter.c b/ref-filter.c i

[PATCH v8 04/11] ref-filter: add option to filter only tags

2015-08-03 Thread Karthik Nayak
From: Karthik Nayak Add a functions called 'for_each_tag_ref_fullpath()' to refs.{c,h} which iterates through each tag ref without trimming the path. Add an option in 'filter_refs()' to use 'for_each_tag_ref_fullpath()' and filter refs. This type checking is done by adding a 'FILTER_REFS_TAGS' i

[PATCH v8 10/11] tag.c: implement '--format' option

2015-08-03 Thread Karthik Nayak
From: Karthik Nayak Implement the '--format' option provided by 'ref-filter'. This lets the user list tags as per desired format similar to the implementation in 'git for-each-ref'. Add tests and documentation for the same. Mentored-by: Christian Couder Mentored-by: Matthieu Moy Signed-off-by

[PATCH v8 03/11] ref-filter: implement an `align` atom

2015-08-03 Thread Karthik Nayak
Implement an `align` atom which will act as a modifier atom and align succeeding atoms to the right, left or middle. It is followed by `:,`, where the `` is either left, right or middle and `` is the total length of the padding to be performed. If the atom length is more than the padding length the

[PATCH v8 0/11] Port tag.c over to use ref-filter APIs

2015-08-03 Thread Karthik Nayak
This is part of my GSoC project to unify git tag -l, git branch -l, git for-each-ref. This patch series is continued from: Git (next) https://github.com/git/git/commit/bf5418f49ff0cebc6e5ce04ad1417e1a47c81b61 This series consists of porting tag.c over to using the ref-filter APIs Version 7 can b

Re: [PATCH v2 5/6] clone: fix hostname parsing when guessing dir

2015-08-03 Thread Jeff King
On Mon, Aug 03, 2015 at 10:34:14AM +0200, Patrick Steinhardt wrote: > One more question for backwards compatibility remains then. > Currently when we clone something like 'http://example.com:/' > we'd create a git repository '' as we'd split on the first > occurrence of ':'. Should we rema

Re: [RFC/PATCH 2/2] Testing the new code

2015-08-03 Thread Stefan Beller
On Fri, Jul 31, 2015 at 6:02 PM, Junio C Hamano wrote: > Stefan Beller writes: > >> -module_list() >> +module_list_shell() >> { >> eval "set $(git rev-parse --sq --prefix "$wt_prefix" -- "$@")" >> ( >> @@ -187,6 +187,29 @@ module_list() >> ' >> } >> >> +module_list() >> +{ >>

"git pull --rebase" fails if pager.pull is true, after producing a colorized diff it cannot apply

2015-08-03 Thread Per Cederqvist
If you run: git config pager.pull true in the hope of getting the output of "git pull" via a pager, you are in for a surpise the next time you run "git pull --rebase" and it has to rebase your work. It will fail with a nonsensical error message: > Applying: First B commit > fatal: unrecogni

Re: [PATCH/RFC 0/2] bisect per-worktree

2015-08-03 Thread Duy Nguyen
On Mon, Aug 3, 2015 at 8:02 PM, Duy Nguyen wrote: > On Sat, Aug 1, 2015 at 10:59 AM, Michael Haggerty > wrote: >> Either way, there's also the question of who should know how to find the >> worktree-specific references--the program that wants to access them, or >> should there be a secret invisi

Re: [PATCH v5 2/5] refs: add ref_type function

2015-08-03 Thread Duy Nguyen
On Fri, Jul 31, 2015 at 1:06 PM, David Turner wrote: > Add a function ref_type, which categorizes refs as per-worktree, > pseudoref, or normal ref. For per-worktree refs, you probably should follow common_list[] in path.c because that's how file-based ref namespace is splitted between per-repo an

Re: [PATCH 1/1] po/README: split out the different contribution types

2015-08-03 Thread Philip Oakley
From: "Jiang Xin" 2015-08-02 21:42 GMT+08:00 Philip Oakley : Separate out the three different contribution styles for existing, new, and wider mis-translation contributions, with suitable headings for easy reference. In particular highlight the appropriate action should a Git mis-translation

Fetch and refs/remotes//HEAD

2015-08-03 Thread Dror Livne
I have noticed that when cloning a repository, I get a refs/remotes/origin/HEAD symbolic ref. On the other hand, when fetching a new remote, the remote HEAD is not set by git-fetch (but can be added later by `git remote set-head ...') I was under the impression that clone is equivalent to (at lea

Re: [PATCH] notes: handle multiple worktrees

2015-08-03 Thread Duy Nguyen
On Wed, Jul 29, 2015 at 5:50 AM, Johan Herland wrote: > On Wed, Jul 29, 2015 at 12:12 AM, Junio C Hamano wrote: >> David Turner writes: >>> Prevent merges to the same notes branch from different worktrees. >>> Before creating NOTES_MERGE_REF, check NOTES_MERGE_REF using the same >>> code we use

Re: [msysGit] Difficulties senting patches to Git list using msmpt (send-email)

2015-08-03 Thread Torsten Bögershausen
Seems like a greylist problem ? (I take the freedom to forward your mail to upstream git, in the hope that somebody has has an idea) On 03.08.15 13:13, Philip Oakley wrote: > I'm scratching my head as to why patches I try to send upstream > (git@vger.kernel.org) via my MSysGit install's send-em

Re: [PATCH/RFC 0/2] bisect per-worktree

2015-08-03 Thread Duy Nguyen
On Sat, Aug 1, 2015 at 10:59 AM, Michael Haggerty wrote: > Either way, there's also the question of who should know how to find the > worktree-specific references--the program that wants to access them, or > should there be a secret invisible mapping that is done on lookup, and > that knows the fu

Re: [PATCH/RFC 0/2] bisect per-worktree

2015-08-03 Thread Duy Nguyen
On Sat, Aug 1, 2015 at 1:51 PM, Michael Haggerty wrote: > For each worktree, we could then create a different view of the > references by splicing parts of the full reference namespace together. > This could even be based on config settings so that we don't have to > hardcode information like "ref

Re: [PATCH v1] send-email: provide whitelist of SMTP AUTH mechanisms

2015-08-03 Thread Jan Viktorin
On Sun, 02 Aug 2015 11:28:49 -0700 Junio C Hamano wrote: > Jan Viktorin writes: > > > Authen::SASL gives: > > > > No SASL mechanism found > > at /usr/share/perl5/vendor_perl/Authen/SASL.pm line 77. > > at /usr/share/perl5/core_perl/Net/SMTP.pm line 207. > > > > The SASL library does not check

Re: [PATCH] untracked-cache: support sparse checkout

2015-08-03 Thread Duy Nguyen
On Mon, Aug 3, 2015 at 5:18 PM, Duy Nguyen wrote: > On Sat, Aug 1, 2015 at 12:35 AM, David Turner > wrote: >> Remove a check that would disable the untracked cache for sparse >> checkouts. Add tests that ensure that the untracked cache works with >> sparse checkouts -- specifically considering

Re: [RFC/PATCH 10/11] branch.c: use 'ref-filter' APIs

2015-08-03 Thread Karthik Nayak
On Thu, Jul 30, 2015 at 12:59 PM, Matthieu Moy wrote: > Karthik Nayak writes: > > Solving this doesn't seem much harder than > > diff --git a/ref-filter.c b/ref-filter.c > index 6c0189f..a4df287 100644 > --- a/ref-filter.c > +++ b/ref-filter.c > @@ -1117,7 +1117,7 @@ static int ref_filter_handler

Re: [PATCH] untracked-cache: support sparse checkout

2015-08-03 Thread Duy Nguyen
On Sat, Aug 1, 2015 at 12:35 AM, David Turner wrote: > Remove a check that would disable the untracked cache for sparse > checkouts. Add tests that ensure that the untracked cache works with > sparse checkouts -- specifically considering the case that a file > foo/bar is checked out, but foo/.git

Re: [PATCH v2 5/6] clone: fix hostname parsing when guessing dir

2015-08-03 Thread Patrick Steinhardt
On Thu, Jul 30, 2015 at 09:53:07AM -0700, Junio C Hamano wrote: > Junio C Hamano writes: > > > Well, but there is the above "or we may not" ;-) > > > >> But actually you are right, currently I still have the old logic > >> in place that splits on colons in the path component. > > > > Yes. The r

Re: [PATCH v7 0/11] port tag.c to use ref-filter APIs

2015-08-03 Thread Karthik Nayak
On Sun, Aug 2, 2015 at 11:02 PM, Matthieu Moy wrote: > Karthik Nayak writes: > >> +test_expect_success 'no padding when `padright` length is smaller than atom >> length' ' >> +cat >expect <<-\EOF && >> +refs/heads/master| >> +refs/heads/side| >> +refs/odd/spot| >> +refs/tags/