[PATCH 04/13] delete_refs(): new function for the refs API

2015-06-08 Thread Michael Haggerty
Move the function remove_branches() from builtin/remote.c to refs.c, rename it to delete_refs(), and make it public. Signed-off-by: Michael Haggerty mhag...@alum.mit.edu --- builtin/remote.c | 21 + refs.c | 19 +++ refs.h | 7 +++ 3

[PATCH 00/13] Improve refs module encapsulation

2015-06-08 Thread Michael Haggerty
Add functions to the reference API to * Delete a bunch of references at once, but *without* failing the whole transaction if one of the deletions fails. This functionality is used by `git remote remove` and `git remote prune`. * Create initial references during `git clone`. (During clone,

[PATCH 09/13] initial_ref_transaction_commit(): function for initial ref creation

2015-06-08 Thread Michael Haggerty
git clone uses shortcuts when creating the initial set of references: * It writes them directly to packed-refs. * It doesn't lock the individual references (though it does lock the packed-refs file). * It doesn't check for refname conflicts between two new references or between one new

[PATCH 12/13] initial_ref_transaction_commit(): check for ref D/F conflicts

2015-06-08 Thread Michael Haggerty
In initial_ref_transaction_commit(), check for D/F conflicts (i.e., the type of conflict that exists between refs/foo and refs/foo/bar) among the references being created and between the references being created and any hypothetical existing references. Ideally, there shouldn't *be* any existing

[PATCH 05/13] delete_refs(): improve error message

2015-06-08 Thread Michael Haggerty
Change the error message from Could not remove branch %s to Could not remove reference %s This change makes sense even for the existing caller, which uses the function to delete remote-tracking branches. Signed-off-by: Michael Haggerty mhag...@alum.mit.edu --- refs.c | 2 +- 1 file

[PATCH 02/13] remove_branches(): remove temporary

2015-06-08 Thread Michael Haggerty
Signed-off-by: Michael Haggerty mhag...@alum.mit.edu --- builtin/remote.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/builtin/remote.c b/builtin/remote.c index f4a6ec9..53b8e13 100644 --- a/builtin/remote.c +++ b/builtin/remote.c @@ -756,8 +756,7 @@ static int

[PATCH 03/13] delete_ref(): handle special case more explicitly

2015-06-08 Thread Michael Haggerty
delete_ref() uses a different convention for its old_sha1 parameter than, say, ref_transaction_delete(): NULL_SHA1 means not to check the old value. Make this fact a little bit clearer in the code by handling it in explicit, commented code rather than burying it in a conditional expression.

[PATCH 11/13] initial_ref_transaction_commit(): check for duplicate refs

2015-06-08 Thread Michael Haggerty
Error out if the ref_transaction includes more than one update for any refname. Signed-off-by: Michael Haggerty mhag...@alum.mit.edu --- refs.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/refs.c b/refs.c index b103a4b..ced4e53 100644 --- a/refs.c +++ b/refs.c @@ -4064,12

[PATCH 06/13] delete_refs(): convert error message to lower case

2015-06-08 Thread Michael Haggerty
This string is going to have to be re-internationalized anyway because of the previous commit. So while we're at it, we might as well convert it to lower case as per our usual practice. Signed-off-by: Michael Haggerty mhag...@alum.mit.edu --- refs.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 07/13] prune_remote(): use delete_refs()

2015-06-08 Thread Michael Haggerty
This will result in errors being emitted for references that can't be deleted, but that is a good thing. Signed-off-by: Michael Haggerty mhag...@alum.mit.edu --- builtin/remote.c | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/builtin/remote.c b/builtin/remote.c

[PATCH 08/13] repack_without_refs(): make function private

2015-06-08 Thread Michael Haggerty
It is no longer called from outside of the refs module. Also move its docstring and change it to imperative voice. Signed-off-by: Michael Haggerty mhag...@alum.mit.edu --- refs.c | 9 - refs.h | 11 --- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/refs.c

Re: Permission denied ONLY after pulling bundles

2015-06-08 Thread Thomas Ferris Nicolaisen
On Mon, Jun 8, 2015 at 10:47 AM, Rossella Barletta rossella.barle...@gmail.com wrote: So summarizing: 1) Git repository (bare) is on Windows on a shared folder 2) Clone of the repository is on Linux 3) Clone of the repository is on windows 4) I received a bundle made starting by a

[PATCH 1/2] fsck_handle_reflog_sha1(): new function

2015-06-08 Thread Michael Haggerty
New function, extracted from fsck_handle_reflog_ent(). The extra is_null_sha1() test for the new reference is currently unnecessary, as reflogs are deleted when the reference itself is deleted. But it doesn't hurt, either. Signed-off-by: Michael Haggerty mhag...@alum.mit.edu --- builtin/fsck.c |

[PATCH 01/13] delete_ref(): move declaration to refs.h

2015-06-08 Thread Michael Haggerty
Also * Add a docstring * Rename the second parameter to old_sha1, to be consistent with the convention used elsewhere in the refs module Signed-off-by: Michael Haggerty mhag...@alum.mit.edu --- cache.h | 2 -- refs.c | 5 +++-- refs.h | 9 + 3 files changed, 12 insertions(+), 4

Re: [PATCH 1/2] git-bisect.sh : create a file if the bisection is in old/new mode, named BISECT_OLDNEWMODE, so it can easily be seen outside the program without having to read BISECT_TERMS. This wil

2015-06-08 Thread Matthieu Moy
Please, don't top-post on this list. Louis-Alexandre Stuber stub...@ensimag.grenoble-inp.fr writes: Thank you for the feedback. We are trying to apply all of your suggestions, but we would prefer to rebase the history before doing some of them (like renaming variables). About the

Re: release address not working

2015-06-08 Thread Thomas Ferris Nicolaisen
On Sun, Jun 7, 2015 at 12:13 PM, Mustafa Kerim Yılmaz mkys...@gmail.com wrote: I try to download from this url: https://github.com/msysgit/msysgit/releases/download/Git-1.9.5-preview20150319/Git-1.9.5-preview20150319.exe It is redirect to amazon aws with url but not responsed:

[PATCH 2/2] fsck: report errors if reflog entries point at invalid objects

2015-06-08 Thread Michael Haggerty
Previously, if a reflog entry's old or new SHA-1 was not resolvable to an object, that SHA-1 was silently ignored. Instead, report such cases as errors. Signed-off-by: Michael Haggerty mhag...@alum.mit.edu --- builtin/fsck.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-)

Re: [PATCH v5 2/3] t4150-am: refactor am -3 tests

2015-06-08 Thread Matthieu Moy
Remi Lespinet remi.lespi...@ensimag.grenoble-inp.fr writes: +test_expect_success 'setup am -3' ' + rm -fr .git/rebase-apply I don't think you need this 'rm -fr' since you're going to repeat it at the beginning of individual tests. But it doesn't harm to keep it just in case. With or

Re: [PATCH 1/2] git-bisect.sh : create a file if the bisection is in old/new mode, named BISECT_OLDNEWMODE, so it can easily be seen outside the program without having to read BISECT_TERMS. This wil

2015-06-08 Thread Matthieu Moy
Eric Sunshine sunsh...@sunshineco.com writes: On Fri, Jun 5, 2015 at 12:34 PM, Louis Stuber stub...@ensimag.grenoble-inp.fr wrote: git-bisect.sh : No space before : in english. create a file if the bisection is in old/new mode, named BISECT_OLDNEWMODE, so it can easily be seen outside the

[PATCH 4/4] status: add new tests for status during rebase -i

2015-06-08 Thread Guillaume Pagès
Expand test coverage with one or more than two commands done and with zero, one or more than two commands remaining --- t/t7512-status-help.sh | 88 ++ 1 file changed, 88 insertions(+) diff --git a/t/t7512-status-help.sh b/t/t7512-status-help.sh

[PATCH 3/4] status: give more information during rebase -i

2015-06-08 Thread Guillaume Pagès
git status gives more information during rebase -i, about the list of command that are done during the rebase. It displays the two last commands executed and the two next lines to be executed. It also gives hints to find the whole files in .git directory. --- I've applied your remarks, the way to

Re: Permission denied ONLY after pulling bundles

2015-06-08 Thread Rossella Barletta
Dear Thomas, Unfortunatly for me i cannot send the files, since there are restrictions, but thanks for your offer. At the moment also configuring the repo with --shared=all is not helping, but i could try to reproduce the problem with a fake repo shared between windows and linux and see if i get

Re: [WIP/PATCH v5 05/10] for-each-ref: introduce 'ref_array_clear()'

2015-06-08 Thread Matthieu Moy
Karthik Nayak karthik@gmail.com writes: +/* Free all memory allocated for ref_array */ +void ref_array_clear(struct ref_array *array) Is this a private function? If so, then add static. If not, you probably want to export it in a .h file. -- Matthieu Moy http://www-verimag.imag.fr/~moy/

GIT for Microsoft Access projects

2015-06-08 Thread hackerp
Hello, I'm Paul Hacker here in Tyler Texas. We are looking for a software control system to keep track of our changes in software. My question is, will GIT work with MS access forms, queries, tables, modules, etc? Thanks for any help. Paul (yes my last name is Hacker!!) -- To unsubscribe

Re: [WIP/PATCH v5 05/10] for-each-ref: introduce 'ref_array_clear()'

2015-06-08 Thread Karthik Nayak
On 06/08/2015 08:23 PM, Matthieu Moy wrote: Karthik Nayak karthik@gmail.com writes: +/* Free all memory allocated for ref_array */ +void ref_array_clear(struct ref_array *array) Is this a private function? If so, then add static. If not, you probably want to export it in a .h file. It

Re: [WIP/PATCH v5 05/10] for-each-ref: introduce 'ref_array_clear()'

2015-06-08 Thread Karthik Nayak
On 06/08/2015 08:23 PM, Matthieu Moy wrote: Karthik Nayak karthik@gmail.com writes: +/* Free all memory allocated for ref_array */ +void ref_array_clear(struct ref_array *array) Is this a private function? If so, then add static. If not, you probably want to export it in a .h file. It

Re: [WIP/PATCH v5 03/10] for-each-ref: rename 'refinfo' to 'ref_array_item'

2015-06-08 Thread Karthik Nayak
On 06/08/2015 08:12 PM, Matthieu Moy wrote: Karthik Nayak karthik@gmail.com writes: Make 'symref' a non const char pointer, so that the compiler doesn't throw an error when we try to free the memory allocated to it. Casting to non-cost when calling free() is a common pattern. I think it

Re: [RFC/PATCH 0/9] add options to ref-filter

2015-06-08 Thread Karthik Nayak
On 06/07/2015 06:40 PM, Christian Couder wrote: On Sat, Jun 6, 2015 at 10:03 PM, Karthik Nayak karthik@gmail.com wrote: This is a follow up series to the one posted here http://thread.gmane.org/gmane.comp.version-control.git/270922 This patch series adds '--ponints-at', '--merged',

Re: [PATCH 1/2] fsck_handle_reflog_sha1(): new function

2015-06-08 Thread Junio C Hamano
Michael Haggerty mhag...@alum.mit.edu writes: New function, extracted from fsck_handle_reflog_ent(). The extra is_null_sha1() test for the new reference is currently unnecessary, as reflogs are deleted when the reference itself is deleted. But it doesn't hurt, either. I think we would crash

Re: [PATCH 2/2] fsck: report errors if reflog entries point at invalid objects

2015-06-08 Thread Michael Haggerty
On 06/08/2015 04:27 PM, Johannes Schindelin wrote: On 2015-06-08 08:40, Michael Haggerty wrote: Previously, if a reflog entry's old or new SHA-1 was not resolvable to an object, that SHA-1 was silently ignored. Instead, report such cases as errors. I like the idea, but I am a bit uncertain

Re: [PATCH 1/2] fsck_handle_reflog_sha1(): new function

2015-06-08 Thread Michael Haggerty
On 06/08/2015 05:07 PM, Junio C Hamano wrote: Michael Haggerty mhag...@alum.mit.edu writes: New function, extracted from fsck_handle_reflog_ent(). The extra is_null_sha1() test for the new reference is currently unnecessary, as reflogs are deleted when the reference itself is deleted. But it

Re: [PATCH] git-rebase--interactive.sh: add config option for custom

2015-06-08 Thread Junio C Hamano
Michael Rappazzo rappa...@gmail.com writes: A config option 'rebase.instructionFormat' can override the default 'oneline' format of the rebase instruction list. Since the list is parsed using the left, right or boundary mark plus the sha1, they are prepended to the instruction format.

Re: [PATCH] commit: cope with scissors lines in commit message

2015-06-08 Thread Junio C Hamano
SZEDER Gábor sze...@ira.uka.de writes: The diff and submodule shortlog appended to the commit message template by 'git commit --verbose' are not stripped when the commit message contains an indented scissors line. When cleaning up a commit message with 'git commit --verbose' or

Re: [WIP/PATCH v5 03/10] for-each-ref: rename 'refinfo' to 'ref_array_item'

2015-06-08 Thread Matthieu Moy
Karthik Nayak karthik@gmail.com writes: Make 'symref' a non const char pointer, so that the compiler doesn't throw an error when we try to free the memory allocated to it. Casting to non-cost when calling free() is a common pattern. I think it would make more sense to cast at free() time

Re: [PATCH] git-rebase--interactive.sh: add config option for custom

2015-06-08 Thread Mike Rappazzo
On Mon, Jun 8, 2015 at 11:28 AM, Junio C Hamano gits...@pobox.com wrote: Michael Rappazzo rappa...@gmail.com writes: A config option 'rebase.instructionFormat' can override the default 'oneline' format of the rebase instruction list. Since the list is parsed using the left, right or boundary

[PATCH/RFC v2 5/5] send-email: refactor address list process

2015-06-08 Thread Remi Lespinet
Matthieu Moy matthieu@grenoble-inp.fr writes: Remi Lespinet remi.lespi...@ensimag.grenoble-inp.fr writes: Simplify code by creating a function to transform list of email lists (comma separated, with aliases ...) into a simple list of valid email addresses. I would have found the

Re: [WIP/PATCH v5 05/10] for-each-ref: introduce 'ref_array_clear()'

2015-06-08 Thread Matthieu Moy
Karthik Nayak karthik@gmail.com writes: On 06/08/2015 08:23 PM, Matthieu Moy wrote: Karthik Nayak karthik@gmail.com writes: +/* Free all memory allocated for ref_array */ +void ref_array_clear(struct ref_array *array) Is this a private function? If so, then add static. If not,

Re: [PATCH 02/13] remove_branches(): remove temporary

2015-06-08 Thread Stefan Beller
On Mon, Jun 8, 2015 at 4:45 AM, Michael Haggerty mhag...@alum.mit.edu wrote: Signed-off-by: Michael Haggerty mhag...@alum.mit.edu Found-to-be-Obviously-Correct-by: Stefan Beller sbel...@google.com ;) --- builtin/remote.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

[PATCH 3/5] t4150: test applying StGit series

2015-06-08 Thread Paul Tan
A StGit series is a directory containing a series file which begins with the line: # This series applies on GIT commit X where X is the commit ID that the patch series applies on. Every following line names a patch in the directory to be applied. Test that git-am, when given

[PATCH 2/5] am: teach StGit patch parser how to read from stdin

2015-06-08 Thread Paul Tan
git-mailsplit, which splits mbox patches, will read the patch from stdin when the filename is - or there are no files listed on the command-line. To be consistent with this behavior, teach the StGit patch parser to read from stdin if the filename is - or no files are listed on the command-line.

[PATCH 0/5] am: improve test coverage and touch up foreign patch parsing

2015-06-08 Thread Paul Tan
git-am is able to parse StGit and mercurial patches. However, there are no regression tests in the test suite for these patch formats, and there are some small bugs as well: * the mercurial and stgit patch parsers does not support reading from stdin * the mercurial patch parser parsed the patch

Re: [PATCHv2 3/3] git-p4: fixing --changes-block-size handling

2015-06-08 Thread Junio C Hamano
Lex Spoon l...@lexspoon.org writes: Unless I am reading something wrong, the new_changes variable could be dropped now. It was needed for the -m version for detecting the smallest change number that was returned. Otherwise it looks good to me. Meaning that I should squash this in to 3/3,

Re: GIT for Microsoft Access projects

2015-06-08 Thread Konstantin Khomoutov
On Mon, 8 Jun 2015 9:45:17 -0500 hack...@suddenlink.net wrote: [...] My question is, will GIT work with MS access forms, queries, tables, modules, etc? [...] Git works with files. So in principle it will work with *files* containing your MS access stuff. But Git will consider and treat those

Re: [PATCH 3/4] status: give more information during rebase -i

2015-06-08 Thread Matthieu Moy
Please, include a version number in the subject. git send-email -v2 does this for you. Guillaume Pagès guillaume.pa...@ensimag.grenoble-inp.fr writes: +static void show_rebase_information(struct wt_status *s, + struct wt_status_state *state, +

Re: [PATCH/RFC v2 5/5] send-email: refactor address list process

2015-06-08 Thread Matthieu Moy
Remi Lespinet remi.lespi...@ensimag.grenoble-inp.fr writes: Matthieu Moy matthieu@grenoble-inp.fr writes: Remi Lespinet remi.lespi...@ensimag.grenoble-inp.fr writes: Simplify code by creating a function to transform list of email lists (comma separated, with aliases ...) into a

Re: [PATCH] commit: cope with scissors lines in commit message

2015-06-08 Thread SZEDER Gábor
Quoting Junio C Hamano gits...@pobox.com: SZEDER Gábor sze...@ira.uka.de writes: The diff and submodule shortlog appended to the commit message template by 'git commit --verbose' are not stripped when the commit message contains an indented scissors line. When cleaning up a commit message

Re: [PATCHv2 3/3] git-p4: fixing --changes-block-size handling

2015-06-08 Thread Lex Spoon
Precisely, Junio, that's what I had in mind. The patch with the two lines deleted LGTM. -- 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://vger.kernel.org/majordomo-info.html

[PATCH 4/5] am: use gmtime() to parse mercurial patch date

2015-06-08 Thread Paul Tan
An example of the line in a mercurial patch that specifies the date of the commit would be: # Date 1433753301 25200 where the first number is the number of seconds since the unix epoch (in UTC), and the second number is the offset of the timezone, in second s west of UTC (negative if the

[PATCH 1/5] t4150: test applying StGit patch

2015-06-08 Thread Paul Tan
By default, an StGit patch separates the subject from the commit message and headers as follows: $subject From: $author_name $author_email $message --- $diffstats We test git-am's ability to detect such a patch as an StGit patch, and its ability to be

[PATCH 5/5] am: teach mercurial patch parser how to read from stdin

2015-06-08 Thread Paul Tan
git-mailsplit, which splits mbox patches, will read the patch from stdin when the filename is - or there are no files listed on the command-line. To be consistent with this behavior, teach the mercurial patch parser to read from stdin if the filename is - or no files are listed on the

Re: [PATCH 2/2] fsck: report errors if reflog entries point at invalid objects

2015-06-08 Thread Johannes Schindelin
Hi Michael, On 2015-06-08 17:09, Michael Haggerty wrote: On 06/08/2015 04:27 PM, Johannes Schindelin wrote: On 2015-06-08 08:40, Michael Haggerty wrote: Previously, if a reflog entry's old or new SHA-1 was not resolvable to an object, that SHA-1 was silently ignored. Instead, report such

Re: [PATCH] utf8.c: print warning about disabled iconv

2015-06-08 Thread Junio C Hamano
Max Kirillov m...@max630.net writes: It is an allowed compile-time option to build git without iconv support. Resulting build almost always functions correctly, and never displays that it is missing anything, but reencode_string_len() just never modifies its input. Correct. This gives

Re: [WIP/PATCH v5 02/10] for-each-ref: clean up code

2015-06-08 Thread Matthieu Moy
Karthik Nayak karthik@gmail.com writes: I put these two together as they are trivial changes. Either I could reword the commit message or split the commit. I'd split the commit. Actually, even though it's only a small comment change, it's not so trivial in the sense that one needs a good

Re: [PATCH v2 2/2] object name: introduce '^{/!-negative pattern}' notation

2015-06-08 Thread Junio C Hamano
Will Palmer wmpal...@gmail.com writes: - * For future extension, ':/!' is reserved. If you want to match a message - * beginning with a '!', you have to repeat the exclamation mark. + * For negative-matching, prefix the pattern-part with '!-', like: ':/!-WIP'. + * + * For a literal '!'

<    1   2