Re: [PATCH] imap-send: clarify CRAM-MD5 vs LOGIN documentation

2014-07-31 Thread Tony Finch
Junio C Hamano gits...@pobox.com wrote: Both patches make sense to me, but can you please sign-off your patches? Oops, sorry about that. Re-roll on its way... Tony. -- f.anthony.n.finch d...@dotat.at http://dotat.at/ Thames, Dover: Southwest 4 or 5, increasing 6 at times. Slight or

[PATCH 2/2] imap-send: create target mailbox if it is missing

2014-07-31 Thread Tony Finch
Some MUAs delete their drafts folder when it is empty, so git imap-send should be able to create it if necessary. This change checks that the folder exists immediately after login and tries to create it if it is missing. There was some vestigial code to handle a [TRYCREATE] response from the

[PATCH 1/2] imap-send: clarify CRAM-MD5 vs LOGIN documentation

2014-07-31 Thread Tony Finch
Explicitly mention that leaving imap.authMethod unset makes git imap-send use the basic IMAP plaintext LOGIN command. Signed-off-by: Tony Finch d...@dotat.at --- Documentation/git-imap-send.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/git-imap-send.txt

[PATCH v5 3/7] change `git_config()` return value to void

2014-07-31 Thread Tanay Abhra
Currently `git_config()` returns an integer signifying an error code. During a previous rewrite of the function most of the code was shifted to `git_config_with_options()`. `git_config_with_options()` normally returns positive values if its `config_source` parameter is set as NULL, as most errors

[PATCH v5 1/7] config.c: fix accuracy of line number in errors

2014-07-31 Thread Tanay Abhra
From: Matthieu Moy matthieu@grenoble-inp.fr If a callback returns a negative value to `git_config*()` family, they call `die()` while printing the line number and the file name. Currently the printed line number is off by one, thus printing the wrong line number. Make `linenr` point to the

[PATCH 7/7] add tests for `git_config_get_string_const()`

2014-07-31 Thread Tanay Abhra
Add tests for `git_config_get_string_const()`, check whether it dies printing the line number and the file name if a NULL value is retrieved for the given key. Signed-off-by: Tanay Abhra tanay...@gmail.com --- t/t1308-config-set.sh | 10 ++ test-config.c | 10 ++ 2 files

[PATCH v5 5/7] add a test for semantic errors in config files

2014-07-31 Thread Tanay Abhra
Semantic errors (for example, for alias.* variables NULL values are not allowed) in configuration files cause a die printing the line number and file name of the offending value. Add a test documenting that such errors cause a die printing the accurate line number and file name. Signed-off-by:

[PATCH v5 2/7] add line number and file name info to `config_set`

2014-07-31 Thread Tanay Abhra
Store file name and line number for each key-value pair in the cache during parsing of the configuration files. Signed-off-by: Tanay Abhra tanay...@gmail.com --- config.c | 21 +++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/config.c b/config.c index

[PATCH 6/7] config: add `git_die_config()` to the config-set API

2014-07-31 Thread Tanay Abhra
Add `git_die_config` that dies printing the line number and the file name of the highest priority value for the configuration variable `key`. It has usage in non-callback based config value retrieval where we can raise an error and die if there is a semantic error. For example, if

[PATCH v5 4/7] rewrite git_config() to use the config-set API

2014-07-31 Thread Tanay Abhra
Of all the functions in `git_config*()` family, `git_config()` has the most invocations in the whole code base. Each `git_config()` invocation causes config file rereads which can be avoided using the config-set API. Use the config-set API to rewrite `git_config()` to use the config caching layer

[PATCH v5 0/7] Rewrite `git_config()` using config-set API

2014-07-31 Thread Tanay Abhra
[PATCH v5]: New patch added (3/7). git_config() now returns void. [PATCH v4]: One style nit corrected, also added key to error messages. Diff with v3 at the bottom for easy review. [PATCH V3]:All the suggestions in [3] applied. Built on top of [1]. [PATCH V2]: All the suggestions in [2]

Re: [PATCH v2 2/2] Make locked paths absolute when current directory is changed

2014-07-31 Thread Duy Nguyen
On Thu, Jul 31, 2014 at 10:01 AM, Yue Lin Ho yuelinho...@gmail.com wrote: Hi: How do I trace these patches applied? They are not applied yet. I'll needto redo them on top of rs/strbuf-getcwd. -- Duy -- To unsubscribe from this list: send the line unsubscribe git in the body of a message to

Re: [PATCH 0/5] nd/multiple-work-trees follow-ups

2014-07-31 Thread Duy Nguyen
On Thu, Jul 31, 2014 at 12:51 AM, Junio C Hamano gits...@pobox.com wrote: Nguyễn Thái Ngọc Duy pclo...@gmail.com writes: The series has entered 'next' so I can't replace patches any more. Besides the brown paper bag fixes, checkout now rejects if a branch is already checked out elsewhere. I

Re: [PATCH v5 3/7] change `git_config()` return value to void

2014-07-31 Thread Matthieu Moy
Tanay Abhra tanay...@gmail.com writes: Signed-off-by: Tanay Abhra tanay...@gmail.com I think I deserve a bit of credit here ;-). { - return git_config_with_options(fn, data, NULL, 1); + if (git_config_with_options(fn, data, NULL, 1) 0) + /* + *

Re: [PATCH v5 4/7] rewrite git_config() to use the config-set API

2014-07-31 Thread Matthieu Moy
Tanay Abhra tanay...@gmail.com writes: + if (!kv_info-linenr) + die(unable to parse '%s' from command-line config, entry-key); + else + die(bad config variable '%s' at file line %d in %s, Also

Re: [PATCH 6/7] config: add `git_die_config()` to the config-set API

2014-07-31 Thread Matthieu Moy
Tanay Abhra tanay...@gmail.com writes: + if (!kv_info-linenr) + die(unable to parse '%s' from command-line config, key); + else + die(bad config variable '%s' at file line %d in %s, And two more missing _(...). -- Matthieu Moy

[PATCH] config.c: mark error and warnings strings for translation

2014-07-31 Thread Matthieu Moy
Signed-off-by: Matthieu Moy matthieu@imag.fr --- Noticed while reviewing Tanay's patches, but this one is independant from his series, both syntactically and semantically. config.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/config.c b/config.c

Re: [PATCH v5 3/7] change `git_config()` return value to void

2014-07-31 Thread Matthieu Moy
Matthieu Moy matthieu@grenoble-inp.fr writes: Tanay Abhra tanay...@gmail.com writes: Signed-off-by: Tanay Abhra tanay...@gmail.com I think I deserve a bit of credit here ;-). { -return git_config_with_options(fn, data, NULL, 1); +if (git_config_with_options(fn, data, NULL,

Re: [PATCH v4 0/5] git_config callers rewritten with the new config cache API

2014-07-31 Thread Ramsay Jones
On 30/07/14 17:45, Matthieu Moy wrote: Tanay Abhra tanay...@gmail.com writes: Also, any thoughts on what to do with git_default_config()? We can, 1 make a new function git_load_default_config(), use it for the rewrites. That seems the most sensible option. It could be called it git.c before

Re: [PATCH v4 2/5] notes.c: replace `git_config()` with `git_config_get_value_multi()`

2014-07-31 Thread Matthieu Moy
Matthieu Moy matthieu@grenoble-inp.fr writes: Tanay Abhra tanay...@gmail.com writes: On 7/30/2014 7:43 PM, Matthieu Moy wrote: * if (!values-items[i].string) config_error_nonbool( = This check could be done once and for all in a function, say

Re: [PATCH v5 3/7] change `git_config()` return value to void

2014-07-31 Thread Matthieu Moy
Tanay Abhra tanay...@gmail.com writes: On 7/31/2014 4:52 PM, Matthieu Moy wrote: Tanay Abhra tanay...@gmail.com writes: Signed-off-by: Tanay Abhra tanay...@gmail.com I think I deserve a bit of credit here ;-). Yes, but to show credit would I have to write from you or signed-off-by? :)

Re: [PATCH v5 3/7] change `git_config()` return value to void

2014-07-31 Thread Tanay Abhra
On 7/31/2014 4:52 PM, Matthieu Moy wrote: Tanay Abhra tanay...@gmail.com writes: Signed-off-by: Tanay Abhra tanay...@gmail.com I think I deserve a bit of credit here ;-). Yes, but to show credit would I have to write from you or signed-off-by? :) { -return

Re: [PATCH] config.c: mark error and warnings strings for translation

2014-07-31 Thread Tanay Abhra
On 7/31/2014 5:01 PM, Matthieu Moy wrote: Signed-off-by: Matthieu Moy matthieu@imag.fr --- Noticed while reviewing Tanay's patches, but this one is independant from his series, both syntactically and semantically. config.c | 20 ++-- 1 file changed, 10 insertions(+),

Re: [PATCH v4 2/5] notes.c: replace `git_config()` with `git_config_get_value_multi()`

2014-07-31 Thread Tanay Abhra
On 7/31/2014 5:08 PM, Matthieu Moy wrote: Matthieu Moy matthieu@grenoble-inp.fr writes: Tanay Abhra tanay...@gmail.com writes: On 7/30/2014 7:43 PM, Matthieu Moy wrote: * if (!values-items[i].string) config_error_nonbool( = This check could be done once and for all in a

Re: [PATCH] config.c: mark error and warnings strings for translation

2014-07-31 Thread Matthieu Moy
Tanay Abhra tanay...@gmail.com writes: On 7/31/2014 5:01 PM, Matthieu Moy wrote: Signed-off-by: Matthieu Moy matthieu@imag.fr --- Noticed while reviewing Tanay's patches, but this one is independant from his series, both syntactically and semantically. config.c | 20

[BUG?] log -g does not respect pathspec

2014-07-31 Thread Duy Nguyen
git log -g and git log -g -- something show the same thing. From the implementation point of view, I guess that's understandable because reflog takes a different codepath. But I think the user does not expect that.. -- Duy -- To unsubscribe from this list: send the line unsubscribe git in the

[PATCH 1/5] gitweb: fix typo in man page

2014-07-31 Thread Tony Finch
Signed-off-by: Tony Finch d...@dotat.at --- Documentation/gitweb.conf.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/gitweb.conf.txt b/Documentation/gitweb.conf.txt index ebe7a6c..29f1e06 100644 --- a/Documentation/gitweb.conf.txt +++

[PATCH 0/5] gitweb: improve directory hierarchy handling

2014-07-31 Thread Tony Finch
There are two main things in this little seris: The second and third patches improve gitweb's project filter feature, which is for listing just the projects in a subdirectory. The fourth and fifth allow the admin to use a directory hierarchy to automatically categorize projects in gitweb. Tony

[PATCH 3/5] gitweb: add a link under the search box to clear a project filter

2014-07-31 Thread Tony Finch
Previously when a project filter was active, the only simple way to clear it was by clicking the home link in the breadcrumbs, which is not very obvious. This change adds another home link under the search box which clears both project filter and search, next to the existing link that clears the

[PATCH 4/5] gitweb: optionally set project category from its pathname

2014-07-31 Thread Tony Finch
When repositories are organized in a hierarchial directory tree it is convenient if gitweb project categories can be set automatically based on their parent directory, so that users do not have to set the same information twice. Signed-off-by: Tony Finch d...@dotat.at ---

[PATCH 5/5] gitweb: make category headings into links when they are directories

2014-07-31 Thread Tony Finch
When $projects_list_category_is_directory is turned on, project categories can be useful as project filters, so with that setting gitweb now makes the category headings into project_filter links (like the breadcrumbs). Signed-off-by: Tony Finch d...@dotat.at --- gitweb/gitweb.perl | 14

[PATCH 2/5] gitweb: if the PATH_INFO is incomplete, use it as a project_filter

2014-07-31 Thread Tony Finch
Previously gitweb would ignore partial PATH_INFO. For example, it would produce a project list for the top URL https://www.example.org/projects/ and a project summary for https://www.example.org/projects/git/git.git but if you tried to list just the git-related projects with

[PATCH v3 0/3] Keep .lock file paths absolute

2014-07-31 Thread Nguyễn Thái Ngọc Duy
v3 requires rs/strbuf-getcwd, turns paths to absolute from the beginning, and kills the last use of PATH_MAX in lockfile.c thanks to strbuf_readlink(). Nguyễn Thái Ngọc Duy (3): lockfile.c: remove PATH_MAX limitation (except in resolve_symlink) lockfile.c: remove PATH_MAX limit in

[PATCH v3 2/3] lockfile.c: remove PATH_MAX limit in resolve_symlink()

2014-07-31 Thread Nguyễn Thái Ngọc Duy
Signed-off-by: Nguyễn Thái Ngọc Duy pclo...@gmail.com --- lockfile.c | 47 ++- 1 file changed, 14 insertions(+), 33 deletions(-) diff --git a/lockfile.c b/lockfile.c index 968b28f..154915f 100644 --- a/lockfile.c +++ b/lockfile.c @@ -85,52 +85,33 @@

[PATCH v3 1/3] lockfile.c: remove PATH_MAX limitation (except in resolve_symlink)

2014-07-31 Thread Nguyễn Thái Ngọc Duy
Signed-off-by: Nguyễn Thái Ngọc Duy pclo...@gmail.com --- cache.h| 2 +- lockfile.c | 56 2 files changed, 33 insertions(+), 25 deletions(-) diff --git a/cache.h b/cache.h index cc46be4..0d8dce7 100644 --- a/cache.h +++ b/cache.h @@

[PATCH v3 3/3] lockfile.c: store absolute path

2014-07-31 Thread Nguyễn Thái Ngọc Duy
Locked paths can be saved in a linked list so that if something wrong happens, *.lock are removed. For relative paths, this works fine if we keep cwd the same, which is true 99% of time except: - update-index and read-tree hold the lock on $GIT_DIR/index really early, then later on may call

[PATCH v2 1/2] config.c: mark error and warnings strings for translation

2014-07-31 Thread Tanay Abhra
From: Matthieu Moy matthieu@imag.fr Signed-off-by: Matthieu Moy matthieu@imag.fr --- v2: error messages now start with a small letter. config.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/config.c b/config.c index 058505c..7330789 100644

[PATCH 2/2] add variable name to `git_config_*()` error message

2014-07-31 Thread Tanay Abhra
Whenever a callback returns a negative value, the functions of `git_config_*()` family die printing the line number and file name. In addition to them, add the variable name to the error message. Signed-off-by: Tanay Abhra tanay...@gmail.com --- config.c| 4 ++--

Re: [PATCH v2 1/2] config.c: mark error and warnings strings for translation

2014-07-31 Thread Matthieu Moy
Tanay Abhra tanay...@gmail.com writes: From: Matthieu Moy matthieu@imag.fr Signed-off-by: Matthieu Moy matthieu@imag.fr --- v2: error messages now start with a small letter. Thanks. Ack on both patches. Is there any reason not to include these two patches in the larger series?

[PATCH] git-push: fix link in man page

2014-07-31 Thread Tony Finch
Signed-off-by: Tony Finch d...@dotat.at --- Documentation/git-push.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/git-push.txt b/Documentation/git-push.txt index 21cd455..c0d7403 100644 --- a/Documentation/git-push.txt +++ b/Documentation/git-push.txt @@

Re: [PATCH 2/2] add variable name to `git_config_*()` error message

2014-07-31 Thread Tanay Abhra
Junio, drop (2/2) of this series, it has conflicts with ta/config-set in pu. This patch can easily come later. Sorry for the inconvenience. Patch 1/2 is OK. Thanks. -- To unsubscribe from this list: send the line unsubscribe git in the body of a message to majord...@vger.kernel.org More

[PATCH v6 1/7] config.c: fix accuracy of line number in errors

2014-07-31 Thread Tanay Abhra
From: Matthieu Moy matthieu@grenoble-inp.fr If a callback returns a negative value to `git_config*()` family, they call `die()` while printing the line number and the file name. Currently the printed line number is off by one, thus printing the wrong line number. Make `linenr` point to the

[PATCH v6 0/7] Rewrite `git_config()` using config-set API

2014-07-31 Thread Tanay Abhra
[Patch v6]: Added _() to error messages. Diff between v6 and v4 at the bottom. [PATCH v5]: New patch added (3/7). git_config() now returns void. [PATCH v4]: One style nit corrected, also added key to error messages. [PATCH V3]:All the suggestions in [3] applied. Built on top of [1].

[PATCH v6 5/7] add a test for semantic errors in config files

2014-07-31 Thread Tanay Abhra
Semantic errors (for example, for alias.* variables NULL values are not allowed) in configuration files cause a die printing the line number and file name of the offending value. Add a test documenting that such errors cause a die printing the accurate line number and file name. Signed-off-by:

[PATCH v6 2/7] add line number and file name info to `config_set`

2014-07-31 Thread Tanay Abhra
Store file name and line number for each key-value pair in the cache during parsing of the configuration files. Signed-off-by: Tanay Abhra tanay...@gmail.com --- config.c | 21 +++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/config.c b/config.c index

[PATCH v6 7/7] add tests for `git_config_get_string_const()`

2014-07-31 Thread Tanay Abhra
Add tests for `git_config_get_string_const()`, check whether it dies printing the line number and the file name if a NULL value is retrieved for the given key. Signed-off-by: Tanay Abhra tanay...@gmail.com --- t/t1308-config-set.sh | 10 ++ test-config.c | 10 ++ 2 files

[PATCH v6 6/7] config: add `git_die_config()` to the config-set API

2014-07-31 Thread Tanay Abhra
Add `git_die_config` that dies printing the line number and the file name of the highest priority value for the configuration variable `key`. It has usage in non-callback based config value retrieval where we can raise an error and die if there is a semantic error. For example, if

[PATCH v6 4/7] rewrite git_config() to use the config-set API

2014-07-31 Thread Tanay Abhra
Of all the functions in `git_config*()` family, `git_config()` has the most invocations in the whole code base. Each `git_config()` invocation causes config file rereads which can be avoided using the config-set API. Use the config-set API to rewrite `git_config()` to use the config caching layer

[PATCH v6 3/7] change `git_config()` return value to void

2014-07-31 Thread Tanay Abhra
Currently `git_config()` returns an integer signifying an error code. During rewrites of the function most of the code was shifted to `git_config_with_options()`. `git_config_with_options()` normally returns positive values if its `config_source` parameter is set as NULL, as most errors are fatal,

Re: [PATCH v6 6/7] config: add `git_die_config()` to the config-set API

2014-07-31 Thread Matthieu Moy
Tanay Abhra tanay...@gmail.com writes: +void git_die_config(const char *key) +{ + const struct string_list *values; + struct key_value_info *kv_info; + values = git_config_get_value_multi(key); + kv_info = values-items[values-nr - 1].util; + if (!kv_info-linenr) +

Re: [PATCH v6 0/7] Rewrite `git_config()` using config-set API

2014-07-31 Thread Matthieu Moy
Tanay Abhra tanay...@gmail.com writes: [Patch v6]: Added _() to error messages. Diff between v6 and v4 at the bottom. Except for the tiny style issue in PATCH 6, the series is now Reviewed-by: Matthieu Moy matthieu@imag.fr -- Matthieu Moy http://www-verimag.imag.fr/~moy/ -- To

Re: [PATCH v6 6/7] config: add `git_die_config()` to the config-set API

2014-07-31 Thread Tanay Abhra
On 7/31/2014 9:25 PM, Matthieu Moy wrote: Tanay Abhra tanay...@gmail.com writes: +void git_die_config(const char *key) +{ +const struct string_list *values; +struct key_value_info *kv_info; +values = git_config_get_value_multi(key); +kv_info = values-items[values-nr -

Re: [PATCH v6 6/7] config: add `git_die_config()` to the config-set API

2014-07-31 Thread Matthieu Moy
Tanay Abhra tanay...@gmail.com writes: On 7/31/2014 9:25 PM, Matthieu Moy wrote: Tanay Abhra tanay...@gmail.com writes: +void git_die_config(const char *key) +{ + const struct string_list *values; + struct key_value_info *kv_info; + values = git_config_get_value_multi(key); +

Re: stash-p broken?

2014-07-31 Thread Junio C Hamano
Jeff King p...@peff.net writes: Hmph. To be honest, I am starting to wonder if implying --first-parent is a more sensible option for stash list. It matches stash show, at least, and it is not unreasonable to simply present the changes in the working tree by default, and ignore the index.

Re: [PATCH 0/5] nd/multiple-work-trees follow-ups

2014-07-31 Thread Junio C Hamano
Duy Nguyen pclo...@gmail.com writes: On Thu, Jul 31, 2014 at 12:51 AM, Junio C Hamano gits...@pobox.com wrote: Nguyễn Thái Ngọc Duy pclo...@gmail.com writes: The series has entered 'next' so I can't replace patches any more. Besides the brown paper bag fixes, checkout now rejects if a branch

Re: [PATCH v3 1/6] alias.c: replace `git_config()` with `git_config_get_string()`

2014-07-31 Thread Samuel Bronson
Ramsay Jones ram...@ramsay1.demon.co.uk writes: On 21/07/14 12:12, Tanay Abhra wrote: -char *alias_lookup(const char *alias) +char *alias_lookup(const char* alias) No, this is not C++. :-D Why would C++ make a difference? Shouldn't you *never* do that? -- Hi! I'm a .signature virus! Copy

Re: [PATCH v6 6/7] config: add `git_die_config()` to the config-set API

2014-07-31 Thread Tanay Abhra
On 7/31/2014 10:22 PM, Matthieu Moy wrote: Tanay Abhra tanay...@gmail.com writes: On 7/31/2014 9:25 PM, Matthieu Moy wrote: Tanay Abhra tanay...@gmail.com writes: +void git_die_config(const char *key) +{ + const struct string_list *values; + struct key_value_info *kv_info; + values

Re: [PATCH v6 6/7] config: add `git_die_config()` to the config-set API

2014-07-31 Thread Matthieu Moy
Tanay Abhra tanay...@gmail.com writes: On 7/31/2014 10:22 PM, Matthieu Moy wrote: Tanay Abhra tanay...@gmail.com writes: On 7/31/2014 9:25 PM, Matthieu Moy wrote: Tanay Abhra tanay...@gmail.com writes: +void git_die_config(const char *key) +{ + const struct string_list *values; +

Re: [PATCH v6 6/7] config: add `git_die_config()` to the config-set API

2014-07-31 Thread Tanay Abhra
On 7/31/2014 11:39 PM, Matthieu Moy wrote: Tanay Abhra tanay...@gmail.com writes: On 7/31/2014 10:22 PM, Matthieu Moy wrote: Tanay Abhra tanay...@gmail.com writes: On 7/31/2014 9:25 PM, Matthieu Moy wrote: Tanay Abhra tanay...@gmail.com writes: +void git_die_config(const char *key) +{

Re: [PATCH v6 6/7] config: add `git_die_config()` to the config-set API

2014-07-31 Thread Matthieu Moy
Tanay Abhra tanay...@gmail.com writes: On 7/31/2014 11:39 PM, Matthieu Moy wrote: This is the part I find weird. You're calling git_die_config_exact() on the first boggus value, and git_die_config_exact() will notify an error at the line of the last boggus value. Hmn, we may have some

Re: [PATCH 2/2] imap-send: create target mailbox if it is missing

2014-07-31 Thread Junio C Hamano
Tony Finch d...@dotat.at writes: Some MUAs delete their drafts folder when it is empty, so git imap-send should be able to create it if necessary. This change checks that the folder exists immediately after login and tries to create it if it is missing. There was some vestigial code to

Re: [PATCH 2/2] imap-send: create target mailbox if it is missing

2014-07-31 Thread Tony Finch
Junio C Hamano gits...@pobox.com wrote: The basic idea looks good, but I have doubts on one point. Thanks for spotting the mistake in the error handling. I'll send an update with a fix. Tony. -- f.anthony.n.finch d...@dotat.at http://dotat.at/ South Utsire: Southwesterly 4 or 5,

Bug report about symlinks

2014-07-31 Thread Nikolay Avdeev
Greetings from Russia, comrads! I've noticed something strange with git status when replacing a folder with symlink to another folder. There is a git repo with script with demo in the attachment. Yours sincerely, NickKolok aka Nikolay Avdeev. Доброго времени суток, товарищи! При замене папки

Re: [PATCH v6 6/7] config: add `git_die_config()` to the config-set API

2014-07-31 Thread Junio C Hamano
Matthieu Moy matthieu@grenoble-inp.fr writes: Tanay Abhra tanay...@gmail.com writes: On 7/31/2014 11:39 PM, Matthieu Moy wrote: This is the part I find weird. You're calling git_die_config_exact() on the first boggus value, and git_die_config_exact() will notify an error at the line of

[PATCH 1/5] refs.c: replace the onerr argument in update_ref with a strbuf err

2014-07-31 Thread Ronnie Sahlberg
Signed-off-by: Ronnie Sahlberg sahlb...@google.com --- builtin/checkout.c | 7 +-- builtin/clone.c | 23 +++ builtin/merge.c | 20 +--- builtin/notes.c | 24 ++-- builtin/reset.c | 12

[PATCH 0/5] ref-transactions-req-strbuf-err

2014-07-31 Thread Ronnie Sahlberg
List, This is the next patch series in the ref transaction work. This patch series is called ref-transactions-req-strbuf-err and builds ontop of the series called ref-transactions-req-packed-refs which is origin/pu This patch series mainly adds some nice strbuf arguments to some functions to

[PATCH 5/5] refs.c: add an err argument to pack_refs

2014-07-31 Thread Ronnie Sahlberg
Signed-off-by: Ronnie Sahlberg sahlb...@google.com --- builtin/pack-refs.c | 8 +++- refs.c | 13 ++--- refs.h | 3 ++- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/builtin/pack-refs.c b/builtin/pack-refs.c index b20b1ec..da5d46a 100644

[PATCH 2/5] refs.c: make add_packed_ref return an error instead of calling die

2014-07-31 Thread Ronnie Sahlberg
Change add_packed_ref to return an error instead of calling die(). Update all callers to check the return value of add_packed_ref. We can also skip checking the refname format since this function is now static and only called from the transaction code. If we are updating a ref and the refname is

[PATCH 3/5] refs.c: make lock_packed_refs take an err argument

2014-07-31 Thread Ronnie Sahlberg
Signed-off-by: Ronnie Sahlberg sahlb...@google.com --- refs.c | 25 + 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/refs.c b/refs.c index 0aad8c8..cfe1292 100644 --- a/refs.c +++ b/refs.c @@ -2270,13 +2270,17 @@ static int write_packed_entry_fn(struct

[PATCH 4/5] refs.c: add an err argument to commit_packed_refs

2014-07-31 Thread Ronnie Sahlberg
Signed-off-by: Ronnie Sahlberg sahlb...@google.com --- refs.c | 85 +++--- 1 file changed, 50 insertions(+), 35 deletions(-) diff --git a/refs.c b/refs.c index cfe1292..19e73f3 100644 --- a/refs.c +++ b/refs.c @@ -2232,8 +2232,8 @@

[PATCH 1/5] receive-pack.c: add protocol support to negotiate atomic-push

2014-07-31 Thread Ronnie Sahlberg
Signed-off-by: Ronnie Sahlberg sahlb...@google.com --- builtin/receive-pack.c | 6 +- send-pack.c| 12 +--- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/builtin/receive-pack.c b/builtin/receive-pack.c index 0565b94..f6b20cb 100644 ---

[PATCH 0/5] ref-transactions-send-pack

2014-07-31 Thread Ronnie Sahlberg
List, This small patch series adds atomic-push support to for pushes. By default git will use the old style non-atomic updates for pushes, as not to cause disruption in client scripts that may depend on that behaviour. Command line arguments are introduced to allow the client side to request/

[PATCH 3/5] receive-pack.c: use a single transaction when atomic-push is negotiated

2014-07-31 Thread Ronnie Sahlberg
Update receive-pack to use an atomic transaction IFF the client negotiated that it wanted atomic-push. This leaves the default behaviour to be the old non-atomic one ref at a time update. This is to cause as little disruption as possible to existing clients. It is unknown if there are client

[PATCH 5/5] push.c: add an --atomic-push argument

2014-07-31 Thread Ronnie Sahlberg
Signed-off-by: Ronnie Sahlberg sahlb...@google.com --- Documentation/git-push.txt | 7 ++- builtin/push.c | 2 ++ transport.c| 1 + transport.h| 1 + 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Documentation/git-push.txt

[PATCH 2/5] send-pack.c: add an --atomic-push command line argument

2014-07-31 Thread Ronnie Sahlberg
Signed-off-by: Ronnie Sahlberg sahlb...@google.com --- Documentation/git-send-pack.txt | 7 ++- builtin/send-pack.c | 6 +- send-pack.c | 8 +++- send-pack.h | 1 + 4 files changed, 19 insertions(+), 3 deletions(-) diff --git

[PATCH 4/5] receive-pack.c: add receive.atomicpush configuration option

2014-07-31 Thread Ronnie Sahlberg
Signed-off-by: Ronnie Sahlberg sahlb...@google.com --- Documentation/config.txt | 5 + builtin/receive-pack.c | 5 + 2 files changed, 10 insertions(+) diff --git a/Documentation/config.txt b/Documentation/config.txt index 1d718bd..75ce157 100644 --- a/Documentation/config.txt +++

Re: Transaction patch series overview

2014-07-31 Thread Ronnie Sahlberg
List, please see here an overview and ordering of the ref transaction patch series. These series build on each other and needs to be applied in the order listed below. This is an update. rs/ref-transaction-0 --- Early part of the ref transaction topic. *

Re: Bug report about symlinks

2014-07-31 Thread René Scharfe
Am 31.07.2014 um 21:50 schrieb Nikolay Avdeev: I've noticed something strange with git status when replacing a folder with symlink to another folder. There is a git repo with script with demo in the attachment. Let's try and make this a bit easier for folks to follow along. # Create test repo

article: Using a rolling hash to break up binary files

2014-07-31 Thread Philip Oakley
I thought it worth bring to the list's attention a recent article on CodeProject that may be of interest to those looking at splitting binary files into deterministic hunks. http://www.codeproject.com/Articles/801608/Using-a-rolling-hash-to-break-up-binary-files It's based on Rabin and

cherry picking and merge

2014-07-31 Thread Mike Stump
Cherry picking doesn’t work as well as it should. I was testing on git version 1.7.9.5. Put in a line in a file, call it: first version then cherry pick this into your branch. Then update on master and transform that into: second version then, merge that branch back to master. Death in

Re: cherry picking and merge

2014-07-31 Thread brian m. carlson
On Thu, Jul 31, 2014 at 05:58:17PM -0700, Mike Stump wrote: Cherry picking doesn’t work as well as it should. I was testing on git version 1.7.9.5. Put in a line in a file, call it: first version then cherry pick this into your branch. Then update on master and transform that into:

Re: article: Using a rolling hash to break up binary files

2014-07-31 Thread Shawn Pearce
On Thu, Jul 31, 2014 at 3:31 PM, Philip Oakley philipoak...@iee.org wrote: I thought it worth bring to the list's attention a recent article on CodeProject that may be of interest to those looking at splitting binary files into deterministic hunks.