Re: [PATCH v2 4/5] replace snprintf with odb_pack_name()

2017-03-16 Thread Ramsay Jones
ame, p->sha1, "keep"); > + unlink_or_warn(name.buf); > } > + strbuf_release(&name); > } > > static int loosen_small_pack(const struct packed_git *p) > @@ -1035,6 +1032,7 @@ static void end_packfile(void) > die("core git rejected index %s", idx_name); > all_packs[pack_id] = new_p; > install_packed_git(new_p); > + free(idx_name); Ah, OK. Yep, no leaks here. ;-) > > /* Print the boundary */ > if (pack_edges) { > ATB, Ramsay Jones

Re: [PATCH v2 5/5] index-pack: make pointer-alias fallbacks safer

2017-03-16 Thread Ramsay Jones
+ final_index_name = odb_pack_name(&index_name, sha1, > "idx"); > if (finalize_object_file(curr_index_name, final_index_name)) > die(_("cannot store index file")); > } else > @@ -1458,7 +1460,9 @@ static void final(const char *final_pack_name, const > char *curr_pack_name, > } > } > > - strbuf_release(&name); > + strbuf_release(&index_name); > + strbuf_release(&pack_name); > + strbuf_release(&keep_name_buf); > } > > static int git_index_pack_config(const char *k, const char *v, void *cb) > Yep, much better. ATB, Ramsay Jones

Re: [PATCH v2 2/5] sha1_file.c: make pack-name helper globally accessible

2017-03-16 Thread Ramsay Jones
but I guess it is to cater to people using the various GIT_ environment variables doing things like: $ GIT_OBJECT_DIRECTORY=./my-objects git It has always puzzled me slightly, why the git_path functions do this normalization, but (for example) setup_git_env(), git_path_from_env(), get_common_dir(), ... don't! ;-) ATB, Ramsay Jones

Re: [GSoC][PATCH v5 2/3] credential-cache: use XDG_CACHE_HOME for socket

2017-03-17 Thread Ramsay Jones
the --file option description). > + `~/.git-credential-cache/` exists in which case > + `~/.git-credential-cache/socket` is used instead. > + If your home directory is on a network-mounted filesystem, you > + may need to change this to a local filesystem. You must specify > + an absolute path. ATB, Ramsay Jones

[PATCH 1/2] refs: remove unused head_ref_submodule() implementation

2017-03-19 Thread Ramsay Jones
commit 990eaca068 ("refs: remove dead for_each_*_submodule()", 18-03-2017) removed the public declaration of head_ref_submodule(), but forgot to remove the definition. Signed-off-by: Ramsay Jones --- Hi Duy, If you need to re-roll your 'nd/prune-in-worktree' branch, cou

Subject: [PATCH 2/2] refs: remove forward declaration for files_log_ref_write()

2017-03-19 Thread Ramsay Jones
ord to the function definition. Signed-off-by: Ramsay Jones --- Hi Duy, If you need to re-roll your 'nd/files-backend-git-dir' branch, could you please squash this into the relevant patch. Thanks! ATB, Ramsay Jones refs/files-backend.c | 12 1 file changed, 4 insertions(+),

Re: [PATCH v6 02/27] files-backend: make files_log_ref_write() static

2017-03-19 Thread Ramsay Jones
but the definition still makes the function > non-static. Actually, this is a static symbol, since it's 'static-ness' derives from the above forward declaration. However, as I said in a previous email, this tickles sparse to issue a warning. In addition, simply adding 'static' to the definition (ie simply _don't_ do the forward declaration) is less work! :-D ATB, Ramsay Jones

[PATCH] revision.c: fix an 'Using integer as NULL pointer' warning

2017-03-19 Thread Ramsay Jones
Signed-off-by: Ramsay Jones --- Hi Duy, If you need to re-roll your 'nd/prune-in-worktree' branch, could you please squash this into the relevant patch (commit 0a30ae48bb, "revision.c: --indexed-objects add objects from all worktrees", 18-03-2017). Thanks! ATB, Ramsay Jo

Re: [PATCH v2 5/7] name-hash: perf improvement for lazy_init_name_hash

2017-03-23 Thread Ramsay Jones
mutex_unlock(&lazy_dir_mutex_array[j]); > +} > + > +static inline int compute_dir_lock_nr( > + const struct hashmap *map, > + unsigned int hash) > +{ > + return hashmap_bucket(map, hash) % LAZY_MAX_MUTEX; > +} > + > +static struct dir_entry *hash_dir_entry_with_parent_and_prefix( > + struct index_state *istate, > + struct dir_entry *parent, > + struct strbuf *prefix) > +{ > + struct dir_entry *dir; > + unsigned int hash; > + int lock_nr; > + > + /* > + * Either we have a parent directory and path with slash(es) > + * or the directory is an immediate child of the root directory. > + */ > + assert((parent != NULL) ^ (strchr(prefix->buf, '/') == 0)); sparse complains about 'Using plain integer as a NULL pointer', (the return from strchr() is NULL, if '/' is not found) so maybe: + assert((parent != NULL) ^ (strchr(prefix->buf, '/') == NULL)); ATB, Ramsay Jones

Re: [PATCH v2 6/7] name-hash: add test-lazy-init-name-hash

2017-03-23 Thread Ramsay Jones
; + fflush(stdout); > + } > + if (count > 1) { > + avg_single = sum_single / count; > + avg_multi = sum_multi / count; > + if (!nr_threads_used) > + printf("avg [size %8d] [single %f]\n", > +nr, > +(double)avg_single/10); > + else > + printf("avg [size %8d] [single %f] %c [multi %f > %d]\n", > +nr, > +(double)avg_single/10, > +(avg_single < avg_multi ? '<' : '>'), > +(double)avg_multi/10, > +nr_threads_used); > + fflush(stdout); > + } > + > + if (nr >= cache_nr_limit) > + return; > + nr += analyze_step; > + } > +} ATB, Ramsay Jones

Re: [PATCH] branch doc: Change `git branch ` to use ``

2017-03-23 Thread Ramsay Jones
y the branches that > match any of the given patterns. Do not forget '-l' > and say "git branch ", as it will instead > try to create a new branch whose name is , > which is a common mistake. Hmm, but with git-branch -l means --create-reflog not --list. I have make the mistake of using -l rather than --list several times ... :D ATB, Ramsay Jones

[PATCH] name-hash: add test-lazy-init-name-hash to .gitignore

2017-03-24 Thread Ramsay Jones
Signed-off-by: Ramsay Jones --- Hi Jeff, If you need to re-roll your 'jh/memihash-opt' branch, could you please squash this into the relevant patch (commit f25dde4fbf, "name-hash: add test-lazy-init-name-hash", 23-03-2017). Thanks! ATB, Ramsay Jones t/helper/.git

Re: [PATCH] name-hash: add test-lazy-init-name-hash to .gitignore

2017-03-24 Thread Ramsay Jones
On 24/03/17 17:26, Ramsay Jones wrote: > > Signed-off-by: Ramsay Jones > --- > > Hi Jeff, > > If you need to re-roll your 'jh/memihash-opt' branch, could you please > squash this into the relevant patch (commit f25dde4fbf, "name-hash: add > test-lazy

Re: [PATCH v2 00/20] Separate `ref_cache` into a separate module

2017-04-01 Thread Ramsay Jones
(especially the other one) that needs updating > before that happens. Hmm, are these branches 'tangled' with nd/prune-in-worktree? (I think they were at one point, but maybe not now?). I sent Duy some comments on that branch (an unused function and a 'plain integer used as NULL pointer' warning). ATB, Ramsay Jones

Re: [PATCH v2 00/20] Separate `ref_cache` into a separate module

2017-04-02 Thread Ramsay Jones
On 02/04/17 04:38, Junio C Hamano wrote: > Ramsay Jones writes: > >>> I am getting the impression that the files-backend thing as well as >>> this topic are ready for 'next'. Please stop me if I missed something >>> in these topics (especially th

Re: [PATCH v4] http.postbuffer: allow full range of ssize_t values

2017-04-03 Thread Ramsay Jones
(value, &tmp, maximum_signed_value_of_type(ssize_t))) ^ config.c:753:12: note: expected ‘intmax_t * {aka long long int *}’ but argument is of type ‘ssize_t * {aka int *}’ static int git_parse_signed(const char *value, intmax_t *ret, intmax_t max) ^ ... and I don't think this version would be any different (though I haven't tried). ATB, Ramsay Jones

Re: [PATCH v5] http.postbuffer: allow full range of ssize_t values

2017-04-04 Thread Ramsay Jones
ARGE to set the > buffer size. > > Signed-off-by: David Turner > --- > > V5 addresses comments from Torsten Boegershausen and Ramsay Jones. Since > I don't have a 32-bit machine handy, it's difficult for me to check > for compiler warnings on 32-bit machines. Ho

Re: [PATCH v2 1/2] test-online-cpus: helper to return cpu count

2017-04-04 Thread Ramsay Jones
est-online-cpus.c @@ -1,3 +1,4 @@ +#include "git-compat-util.h" #include "stdio.h" #include "thread-utils.h" $ Otherwise, this series fixes the test for me. Thanks! ATB, Ramsay Jones

[PATCH] config.mak.uname: set FREAD_READS_DIRECTORIES for cygwin

2017-07-21 Thread Ramsay Jones
Signed-off-by: Ramsay Jones --- Hi Junio, My 'make test' run for the v2.14.0-rc0 on cygwin turned up a new test failure (over and above the v2.13.0 failures), namely t1308.23. Running the test in the debugger showed that cygwin was fopen-ing the 'a-directory' without probl

[PATCH] credential-cache: interpret an ECONNRESET as on EOF

2017-07-26 Thread Ramsay Jones
F. */ exit(0); } On cygwin this is not the case, at least when not passing --debug to the daemon, and the read following the "exit" gets an error with errno set to ECONNRESET. In order to suppress the fatal exit in this case, check the read error for an ECON

Re: [PATCH] credential-cache: interpret an ECONNRESET as on EOF

2017-07-27 Thread Ramsay Jones
On 27/07/17 15:17, Jeff King wrote: > On Thu, Jul 27, 2017 at 02:08:40AM +0100, Ramsay Jones wrote: > >> In order to suppress the fatal exit in this case, check the read error >> for an ECONNRESET and return as if no data was read from the daemon. >> This effectively con

Re: [PATCH] credential-cache: interpret an ECONNRESET as on EOF

2017-07-27 Thread Ramsay Jones
Hi Junio, I just noticed a typo in the subject line for this patch. It should read '... ECONNRESET as _an_ EOF' not '... ECONNRESET as _on_ EOF'. [complete patch snipped!] Thanks! ATB, Ramsay Jones

Re: What's cooking in git.git (Jul 2017, #09; Mon, 31)

2017-07-31 Thread Ramsay Jones
) to turn off the "switches to backup" branch. :-D I didn't want you to think that the lack of comments on this was because everybody agreed that it was a good idea. ATB, Ramsay Jones

Re: What's cooking in git.git (Jul 2017, #09; Mon, 31)

2017-08-03 Thread Ramsay Jones
On 03/08/17 22:07, Junio C Hamano wrote: > Sahil Dua writes: > >> Ah! I had skipped this reply from Ramsay earlier. >> >> On Tue, Aug 1, 2017 at 1:36 AM, Ramsay Jones >> ... >>>> I personally do not think "branch --copy master backup" wh

Re: [PATCH v2] t3700: fix broken test under !POSIXPERM

2017-08-08 Thread Ramsay Jones
the lack of SANITY that is the problem. The test would fail on Linux as well, if it skipped the prior tests marked with SANITY (they get rid of the xfoo3->xfoo2 symlinks, among others). Ack, this fixes it for me. ATB, Ramsay Jones > > Helped-by: Adam Dinwoodie > Signed-off-by: Rene S

Re: [PATCH v2] t3700: fix broken test under !POSIXPERM

2017-08-08 Thread Ramsay Jones
On 08/08/17 20:32, Ramsay Jones wrote: > > > On 08/08/17 20:21, René Scharfe wrote: >> 76e368c378 (t3700: fix broken test under !SANITY) explains that the test >> 'git add --chmod=[+-]x changes index with already added file' can fail >> if xfoo3 is still

[PATCH] builtin/add: add a missing newline to an stderr message

2017-08-08 Thread Ramsay Jones
Signed-off-by: Ramsay Jones --- Hi Junio, I noticed this while looking into the t3700 failure on cygwin tonight. Also, I couldn't decide whether or not to add the i18n '_()' brackets around the message. In the end I didn't, but will happily add them if you think I should.

Re: [PATCH] builtin/add: add a missing newline to an stderr message

2017-08-08 Thread Ramsay Jones
On 08/08/17 22:45, René Scharfe wrote: > Am 08.08.2017 um 23:36 schrieb Ramsay Jones: >> >> Signed-off-by: Ramsay Jones >> --- >> >> Hi Junio, >> >> I noticed this while looking into the t3700 failure on cygwin tonight. >> Also, I couldn

[PATCH] builtin/add: add detail to a 'cannot chmod' error message

2017-08-08 Thread Ramsay Jones
In addition to adding the missing newline, add the x-ecutable bit 'mode change' character to the error message. This message now has the same form as similar messages output by 'update-index'. Signed-off-by: Ramsay Jones --- Hi Junio, This is v2 of the earlier "add

Re: [PATCH 4/5] interpret-trailers: add an option to normalize output

2017-08-10 Thread Ramsay Jones
1:1 mappings with normalization. For > instance, --json presumably implies --only-trailers. Or are we proposing > to break the whole commit message down into components and output it all > as json? Hmm, to me the operation wasn't so much a normalization, rather it was an --unfold (or maybe --un-fold ;-D). I suppose going in the other direction could be --fold=72, or some such. [blue is my favourite colour ... :-P ] ATB, Ramsay Jones

Re: [PATCH 4/5] interpret-trailers: add an option to normalize output

2017-08-10 Thread Ramsay Jones
On 11/08/17 00:10, Jeff King wrote: > On Fri, Aug 11, 2017 at 12:02:49AM +0100, Ramsay Jones wrote: > >>> But some of those things are not 1:1 mappings with normalization. For >>> instance, --json presumably implies --only-trailers. Or are we proposing >>>

Re: [PATCH 1/9] Convert pack-objects to size_t

2017-08-12 Thread Ramsay Jones
t. Later in this function, datalen is set the the difference of two (revidx) off_t offsets. I haven't applied and tried this on my 32-bit Linux install yet (that installation only gets booted about once a week), but I suspect a 'possible data-loss' warning. For other reasons, I don't think it is not possible for a 32-bit system to create a packfile with an individual object of size > 4GB anyway, so this may not be a problem in practice. (a 32-bit system should be able to read such a packfile, presumably created on a 64-bit system, and refuse to load such an object, of course). ATB, Ramsay Jones

Re: [PATCH 2/9] Convert index-pack to size_t

2017-08-12 Thread Ramsay Jones
void *cb_data) > { > off_t from = obj[0].idx.offset + obj[0].hdr_size; > - off_t len = obj[1].idx.offset - from; > + size_t len = obj[1].idx.offset - from; Similar comment to previous patch. ATB, Ramsay Jones

Re: [RFC] clang-format: outline the git project's coding style

2017-08-13 Thread Ramsay Jones
ECAST_INT_CONSTANT 2 WARNING:UNNECESSARY_BREAK 56 WARNING:UNNECESSARY_ELSE 568 WARNING:UNSPECIFIED_INT 4 WARNING:USE_NEGATIVE_ERRNO 26 WARNING:VOLATILE $ Hmm, on reflection, it may be a bit too crude! :-D ATB, Ramsay Jones

Re: [RFC] clang-format: outline the git project's coding style

2017-08-13 Thread Ramsay Jones
On 13/08/17 17:14, Ramsay Jones wrote: > > > On 13/08/17 05:41, Jeff King wrote: >> On Fri, Aug 11, 2017 at 09:39:11PM -0700, Junio C Hamano wrote: >> >>>> Yeah, I just dug in the archive. The script I ran way back when was >>>> actually clang

Re: [RFC] clang-format: outline the git project's coding style

2017-08-13 Thread Ramsay Jones
On 13/08/17 18:33, Junio C Hamano wrote: > Ramsay Jones writes: >> Hmm, on reflection, it may be a bit too crude! :-D > > As you already saw in the output from this, I think this is a good > illustration that shows why we want an incremental tool that works > on the chan

Re: [PATCH 1/9] Convert pack-objects to size_t

2017-08-13 Thread Ramsay Jones
On 13/08/17 19:30, Martin Koegler wrote: > On Sat, Aug 12, 2017 at 02:47:25PM +0100, Ramsay Jones wrote: >> On 32-bit Linux, off_t is 64-bit and size_t is 32-bit. > > --- t.c --- > #include > #include > > int main() > { > printf("

Re: [PATCH 1/9] Convert pack-objects to size_t

2017-08-14 Thread Ramsay Jones
e into an SCM probably gets what they deserve. :-P ). The two patches I commented on, however, changed the type of some variables from off_t to size_t. In general, the patches did not seem to make anything worse, but these type changes could potentially do harm. Hence my comment. (I still haven't tried the patches on my 32-bit Linux system. I only boot it up about once a week, and I would rather wait until the patches are in the 'pu' branch before testing). ATB, Ramsay Jones

Re: [PATCH 1/9] Convert pack-objects to size_t

2017-08-14 Thread Ramsay Jones
s another > story, which can be developped independent of the ulong->size_t conversion. Oh, I absolutely agree. > Thanks to Martin for working on this. Indeed! Thanks Martin. ATB, Ramsay Jones

Re: [Patch size_t V3 13/19] Convert index-pack to size_t

2017-08-16 Thread Ramsay Jones
void *cb_data) > { > off_t from = obj[0].idx.offset + obj[0].hdr_size; > - off_t len = obj[1].idx.offset - from; > + size_t len = obj[1].idx.offset - from; off_t -> size_t. ATB, Ramsay Jones

Re: [PATCH 2/2] rerere: allow approxidate in gc.rerereResolved/gc.rerereUnresolved

2017-08-20 Thread Ramsay Jones
not specific to the > rerere machinery. Perhaps config.c would be such a good neutral > place, as it will allow git_parse_signed() to go back to static to > the file. You make git_parse_unsigned() external in this patch, in addition to git_parse_signed(), but don't actually call it. W

[PATCH] repository: fix a sparse 'using integer a NULL pointer' warning

2017-08-21 Thread Ramsay Jones
introduce a bug, since the '0' initializer for the 'ignore_env:1' bit-field is interpreted as a NULL pointer (hence the warning), and the final field (now with no initializer) receives a default '0'. Signed-off-by: Ramsay Jones --- Hi Brian, If you need to re-roll your

Re: cat-file timing window on Cygwin

2017-08-25 Thread Ramsay Jones
IVE > { I suspect not, but I can give it a try ... ... oh, wow, that works! Ahem. (Hmm, so it's flushing stdin?!) Also, t5526-fetch-submodules.sh still works as well (see commit 13af8cbd6a "start_command: flush buffers in the WIN32 code path as well", 04-02-2011). ATB, Ramsay Jones

Re: cat-file timing window on Cygwin

2017-08-26 Thread Ramsay Jones
On 26/08/17 22:11, Adam Dinwoodie wrote: > On Sat, Aug 26, 2017 at 11:53:37AM -0700, Jeff King wrote: >> On Sat, Aug 26, 2017 at 01:57:18AM +0100, Ramsay Jones wrote: >> >>>> diff --git a/run-command.c b/run-command.c >>>> index 98621faca8..064ebd1995 100

Re: cat-file timing window on Cygwin

2017-08-27 Thread Ramsay Jones
On 27/08/17 12:33, Adam Dinwoodie wrote: > On Sun, Aug 27, 2017 at 03:06:31AM +0100, Ramsay Jones wrote: >> On 26/08/17 22:11, Adam Dinwoodie wrote: >>> On Sat, Aug 26, 2017 at 11:53:37AM -0700, Jeff King wrote: >>>> Interesting. I find it a little hard to be

[PATCH] usage: conditionally compile unleak_memory() definition

2017-09-07 Thread Ramsay Jones
Signed-off-by: Ramsay Jones --- Hi Jeff, If you need to re-roll your 'jk/leak-checkers' branch, could you please squash this into the relevant patch (commit c57586d954, "add UNLEAK annotation for reducing leak false positives", 05-09-2017). This was noticed by sparse, sinc

Re: Re: cat-file timing window on Cygwin

2017-09-08 Thread Ramsay Jones
On 27/08/17 16:47, Ramsay Jones wrote: > On 27/08/17 12:33, Adam Dinwoodie wrote: [snip] >> Cygwin 2.8.3 hasn't been released yet, > > Heh, yes, I found that out myself this afternoon. ;-) > >> but I've just tested

Unexpected pass for t6120-describe.sh on cygwin

2017-09-09 Thread Ramsay Jones
blem on MinGW and Git-For-Windows, but I can't test on those platforms. Unfortunately, I can't spend more time on git today, hence this heads up! ;-) ATB, Ramsay Jones -- >8 -- diff --git a/test.c b/test.c new file mode 100644 index 000..bcbb805 --- /dev/null +++ b/t

Re: Unexpected pass for t6120-describe.sh on cygwin

2017-09-10 Thread Ramsay Jones
On 10/09/17 13:27, Michael J Gruber wrote: > Ramsay Jones venit, vidit, dixit 09.09.2017 15:13: [snip] >> So, it looks like all ULIMIT_STACK_SIZE tests need to be disabled >> on cygwin. I also wonder about the ULIMIT_FILE_DESCRIPTORS tests, >> but haven't looked into it

Re: Unexpected pass for t6120-describe.sh on cygwin

2017-09-11 Thread Ramsay Jones
On 11/09/17 11:31, Adam Dinwoodie wrote: > On Sat, Sep 09, 2017 at 02:13:32PM +0100, Ramsay Jones wrote: >> I ran the test-suite on the 'pu' branch last night (simply because >> that was what I had built at the time!), which resulted in a PASS, >> but t6120 was

[PATCH] test-lib: don't use ulimit in test prerequisites on cygwin

2017-09-13 Thread Ramsay Jones
ue. Add a check for cygwin and MinGW to the prerequisite expressions, using 'uname -s', and return false instead of (indirectly) using 'ulimit'. This affects the prerequisite expressions for the ULIMIT_STACK_SIZE, CMDLINE_LIMIT and ULIMIT_FILE_DESCRIPTORS prerequisites. Signed

Re: [PATCH v2] config: avoid "write_in_full(fd, buf, len) < len" pattern

2017-09-13 Thread Ramsay Jones
I didn't think Junio would even consider applying it. Also, I only used gcc and was anticipating having additional warnings on clang (but I didn't get around to trying). Maybe I should give it another go. :-D ATB, Ramsay Jones

Re: [PATCH v2] config: avoid "write_in_full(fd, buf, len) < len" pattern

2017-09-13 Thread Ramsay Jones
On 13/09/17 23:43, Ramsay Jones wrote: > > > On 13/09/17 19:58, Jeff King wrote: >> On Wed, Sep 13, 2017 at 11:24:31AM -0700, Jonathan Nieder wrote: >> >>> For what it's worth, >>> Reviewed-by: Jonathan Nieder >> >> Thanks, and thank yo

[PATCH v2] test-lib: don't use ulimit in test prerequisites on cygwin

2017-09-14 Thread Ramsay Jones
ue. Add a check for cygwin and MinGW to the prerequisite expressions, using a 'test_have_prereq !MINGW,!CYGWIN' clause, to guard against using ulimit. This affects the prerequisite expressions for the ULIMIT_STACK_SIZE, CMDLINE_LIMIT and ULIMIT_FILE_DESCRIPTORS prerequisites. Signed-off-by: R

Re: [PATCH 2/2] test-lib: ulimit does not limit on CYGWIN and MINGW

2017-09-14 Thread Ramsay Jones
rectly (to "not-have") on these systems. > > Reported-by: Ramsay Jones > Reported-by: Adam Dinwoodie > Reported-by: Johannes Schindelin > Signed-off-by: Michael J Gruber > --- > This is independent of my series, but should best go before so that no > ulimit based

Re: [PATCH v2] config: avoid "write_in_full(fd, buf, len) < len" pattern

2017-09-15 Thread Ramsay Jones
On 15/09/17 01:37, Jeff King wrote: > On Thu, Sep 14, 2017 at 12:31:38AM +0100, Ramsay Jones wrote: > >> I just tried it again tonight; the current master branch has 3532 >> warnings when compiled with -Wextra, 1409 of which are -Wsign-compare >> warnings. After applyin

Re: [PATCH 1/2] test-lib: group system specific FIFO tests by system

2017-09-15 Thread Ramsay Jones
k on the cygwin mailing list. (see commit 9443605b5d, "test-lib.sh - cygwin does not have usable FIFOs", 04-07-2013) In fact, you can see that this was disabled on cygwin before MinGW! It is possible, of course, that fifos now work on cygwin. (I will put it on my TODO list). In any event, this is indeed a separate issue. ATB, Ramsay Jones

[PATCH] test-drop-caches: mark file local symbols with static

2017-09-17 Thread Ramsay Jones
Signed-off-by: Ramsay Jones --- Hi Ben, If you need to re-roll your 'bp/fsmonitor' branch, could you please squash this into the relevant patch (commit c6b5a28941, "fsmonitor: add a performance test", 15-09-2017). Thanks! ATB, Ramsay Jones t/helper/tes

[PATCH] protocol: make parse_protocol_version() private

2017-09-17 Thread Ramsay Jones
Signed-off-by: Ramsay Jones --- Hi Brandon, If you need to re-roll your 'bw/protocol-v1' branch, could you please squash this into the relevant patch (commit 45954f179e, "protocol: introduce protocol extention mechanisms", 13-09-2017). This assumes you agree that this sym

[PATCH 0/2] minor PIPE prerequisite updates

2017-09-17 Thread Ramsay Jones
These patches were developed on top of 'pu', but should apply cleanly on top of the 'rj/test-ulimit-on-windows' branch. Ramsay Jones (2): test-lib: use more compact expression in PIPE prerequisite t9010-*.sh: skip all tests if the PIPE prereq is missing t/

[PATCH 1/2] test-lib: use more compact expression in PIPE prerequisite

2017-09-17 Thread Ramsay Jones
Signed-off-by: Ramsay Jones --- t/test-lib.sh | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/t/test-lib.sh b/t/test-lib.sh index 32f9b2001..9b61f16f7 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -1067,14 +1067,8 @@ test_i18ngrep () { test_lazy_prereq PIPE

[PATCH 2/2] t9010-*.sh: skip all tests if the PIPE prereq is missing

2017-09-17 Thread Ramsay Jones
s the PIPE prerequisite, performing the setup test, when the PIPE preequisite is missing, is simply wasted effort. Use the skip-all test facility to skip all tests when the PIPE prerequisite is missing. Signed-off-by: Ramsay Jones --- t/t9010-svn-

[PATCH 0/4] avoid some -Wsign-compare warnings

2017-09-21 Thread Ramsay Jones
levels), so I haven't submitted it before. What do you think? These patches reduce the error count quite a bit, without touching too many files, but additional patches may have to be batched up and submitted over several releases, viz: $ grep warning out2 | cut -d: -f1 | sort | uniq | wc -l 2

[PATCH 1/4] git-compat-util.h: xsize_t() - avoid -Wsign-compare warnings

2017-09-21 Thread Ramsay Jones
Signed-off-by: Ramsay Jones --- git-compat-util.h | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/git-compat-util.h b/git-compat-util.h index 9bc15b036..cedad4d58 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -898,9 +898,11 @@ static inline char

[PATCH 2/4] commit-slab.h: avoid -Wsign-compare warnings

2017-09-21 Thread Ramsay Jones
Signed-off-by: Ramsay Jones --- commit-slab.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commit-slab.h b/commit-slab.h index 333d81e37..dcaab8ca0 100644 --- a/commit-slab.h +++ b/commit-slab.h @@ -78,7 +78,7 @@ static MAYBE_UNUSED void init_ ##slabname(struct

[PATCH 3/4] cache.h: hex2chr() - avoid -Wsign-compare warnings

2017-09-21 Thread Ramsay Jones
Signed-off-by: Ramsay Jones --- cache.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cache.h b/cache.h index a916bc79e..a0e3e362c 100644 --- a/cache.h +++ b/cache.h @@ -1243,8 +1243,8 @@ static inline unsigned int hexval(unsigned char c) */ static inline int

[PATCH 4/4] ALLOC_GROW: avoid -Wsign-compare warnings

2017-09-21 Thread Ramsay Jones
Signed-off-by: Ramsay Jones --- builtin/pack-objects.c | 4 ++-- config.c | 2 +- diff.c | 2 +- line-log.c | 18 +- line-log.h | 2 +- revision.c | 2 +- tree-walk.c| 3 +-- 7 files changed, 16

Re: [PATCH 1/4] git-compat-util.h: xsize_t() - avoid -Wsign-compare warnings

2017-09-21 Thread Ramsay Jones
On 21/09/17 19:49, Torsten Bögershausen wrote: > On 2017-09-21 18:46, Ramsay Jones wrote: >> >> Signed-off-by: Ramsay Jones >> --- >> git-compat-util.h | 6 -- >> 1 file changed, 4 insertions(+), 2 deletions(-) >> >> diff --git a/git-compat-

Re: [PATCH 4/4] ALLOC_GROW: avoid -Wsign-compare warnings

2017-09-22 Thread Ramsay Jones
ferring to! ;-) Yep, sorry, I don't know how I managed to add the extra space. (I don't think I can blame vim - PEBKAC). ATB, Ramsay Jones

Re: [PATCH 2/4] commit-slab.h: avoid -Wsign-compare warnings

2017-09-22 Thread Ramsay Jones
On 22/09/17 06:29, Jeff King wrote: > On Thu, Sep 21, 2017 at 05:47:36PM +0100, Ramsay Jones wrote: > >> diff --git a/commit-slab.h b/commit-slab.h >> index 333d81e37..dcaab8ca0 100644 >> --- a/commit-slab.h >> +++ b/commit-slab.h >> @@ -78,7 +78,7 @@ stati

Re: [PATCH 3/4] cache.h: hex2chr() - avoid -Wsign-compare warnings

2017-09-22 Thread Ramsay Jones
On 22/09/17 06:47, Jeff King wrote: > On Thu, Sep 21, 2017 at 05:48:38PM +0100, Ramsay Jones wrote: > >> diff --git a/cache.h b/cache.h >> index a916bc79e..a0e3e362c 100644 >> --- a/cache.h >> +++ b/cache.h >> @@ -1243,8 +1243,8 @@ static inline

Re: [PATCH 3/4] cache.h: hex2chr() - avoid -Wsign-compare warnings

2017-09-22 Thread Ramsay Jones
On 22/09/17 17:11, Jeff King wrote: > On Fri, Sep 22, 2017 at 05:05:03PM +0100, Ramsay Jones wrote: > >>> As an aside, I also see some uses of hexval() that don't appear to be >>> quite as rigorous in checking for invalid characters. A few >>> uncondition

Re: [PATCH 4/4] ALLOC_GROW: avoid -Wsign-compare warnings

2017-09-22 Thread Ramsay Jones
hose changes silence only two warnings!) Hmm, I did consider splitting this patch up, so that this (and other issues you mention below) could be called out separately, but well ... ;-) >> Signed-off-by: Ramsay Jones >> --- >> builtin/pack-objects.c | 4 ++-- >> config.

Re: [PATCH] fast-import: checkpoint: dump branches/tags/marks even if object_count==0

2017-09-27 Thread Ramsay Jones
> + if ! kill -0 "$(cat V.pid)" > + then > + echo >&2 "background fast-import terminated too early" > + exit 1 > + fi > +} > + ... you need to set the PIPE prerequisite on all of your new tests. > +test_expect_success 'V: checkpoint updates refs after reset' ' > + cat >input <<-\INPUT_END && > + reset refs/heads/V > + from refs/heads/U > + > + checkpoint > + progress checkpoint > + INPUT_END > + > + background_import_until_checkpoint "" input && > + test "$(git rev-parse --verify V)" = "$(git rev-parse --verify U)" && > + background_import_still_running > +' [snip] ATB, Ramsay Jones

Re: [PATCH] diff: correct newline in summary for renamed files

2017-09-27 Thread Ramsay Jones
GIT_AUTHOR_DATE="2006-06-26 00:06:00 +" && > + GIT_COMMITTER_DATE="2006-06-26 00:06:00 +" && > + export GIT_AUTHOR_DATE GIT_COMMITTER_DATE && > + git checkout -b mode initial && > + git update-index --chmod=+x file0 && would 'test_chmod +x file0 &&' work here? ATB, Ramsay Jones

Re: [PATCH v16 1/6] bisect--helper: use OPT_CMDMODE instead of OPT_BOOL

2017-09-30 Thread Ramsay Jones
er: add some vertical whitespace 8c883701c bisect--helper: fix up some coding style issues $ Again IIRC, there are a couple of bug fixes in these commits ... I have to go now, so I will leave it with you. ;-) Hope that helps. ATB, Ramsay Jones -- >8 -- diff --git a/bisect.c b/bisect.c

Re: [PATCH v16 1/6] bisect--helper: use OPT_CMDMODE instead of OPT_BOOL

2017-10-02 Thread Ramsay Jones
ed it in your commit 682d0bff0. Although I would need to have > a closer look at it. In original series, I did get a sigserv, and as > you mention it in the commit that you have fixed it. Yes, I also meant to tidy that up by removing some, now redundant, initialisation later in that function. Note, that wasn't the only bug! (I have probably forgotten some of them, but look at 964f4e2b0, for example). ATB, Ramsay Jones

Re: [PATCH v3] clang-format: add a comment about the meaning/status of the

2017-10-02 Thread Ramsay Jones
g-format version 4.0.1 (tags/RELEASE_401/final)', which requires me to comment out: AlignEscapedNewlines: Left PenaltyBreakAssignment: 100 So, I don't think I can play along! :( [When playing with 3.8 on Linux, I noted that clang-format seemed to ignore *all* settings in .clang-format, if it found *any* config that it didn't know about! Not very friendly. :-P ] ATB, Ramsay Jones

[PATCH] test-list-objects: mark file-local symbols as static

2017-10-03 Thread Ramsay Jones
Signed-off-by: Ramsay Jones --- Hi Derrick, If you need to re-roll your 'ds/find-unique-abbrev-optim' branch, could you please squash this into the relevant patch (commit 3792c78ba0, "test-list-objects: list a subset of object ids", 01-10-2017). Thanks! ATB, Ramsay Jones

Re: [PATCH v16 1/6] bisect--helper: use OPT_CMDMODE instead of OPT_BOOL

2017-10-03 Thread Ramsay Jones
On 03/10/17 04:51, Junio C Hamano wrote: > Ramsay Jones writes: > >> On 02/10/17 14:44, Pranit Bauva wrote: >> [snip] >>> ... >> Yes, I also meant to tidy that up by removing some, now >> redundant, initialisation later in that function. >> >&g

v2.15.0-rc1 test failure

2017-10-11 Thread Ramsay Jones
lso, I ran this test by hand (well, in a shell loop) at least 70 times tonight (after the test-suite run), without any failures, so ... (unfortunately, I don't have a trash directory to look at. :( ) I have just kicked off another full test-suite run. Just a heads up! ;-) ATB, Ramsay Jones

Re: v2.15.0-rc1 test failure

2017-10-11 Thread Ramsay Jones
On 11/10/17 23:15, Ramsay Jones wrote: > Hi Adam, > > I had a test failure on the v2.15.0-rc1 build tonight. > The test in question being t0021-conversion.sh #15 > ('required process filter should filter data'). I didn't > have any test failures on v2.15.0-rc0,

Re: v2.15.0-rc1 test failure

2017-10-11 Thread Ramsay Jones
d test-suite run and, of course, t0021 ran without problem this time. Hmm, I don't think I have time to chase this down at the moment. I will keep your 'perl hypothesis' in mind for next time, however. Thanks. ATB, Ramsay Jones

Re: What's cooking in git.git (Oct 2017, #05; Tue, 24)

2017-10-26 Thread Ramsay Jones
hen doing an 'git log --oneline' display which, naturally, puts focus on the subject lines. ;-) ] ATB, Ramsay Jones

[PATCH] fix an 'dubious one-bit signed bitfield' error

2017-11-03 Thread Ramsay Jones
Signed-off-by: Ramsay Jones --- Hi Jeff, If you need to re-roll your 'jh/object-filtering' branch, could you please squash this into the relevant commit (b87fd93d81, "list-objects: filter objects in traverse_commit_list", 02-11-2017). [This error was issued by sparse]

Re: [PATCH v16 Part II 1/8] bisect--helper: `bisect_reset` shell function in C

2017-11-07 Thread Ramsay Jones
path_bisect_start(), 0) < 1) > + return !printf(_("We are not bisecting.\n")); I've no idea what this is about! If printf encounters an error, then this will be equivalent to !-1. If printf does not encounter an error, then this will be ! (whatever that may be, given that the string is marked for translation). I would suggest that you don't want to do that. ;-) ATB, Ramsay Jones

Re: [PATCH v16 Part II 2/8] bisect--helper: `bisect_write` shell function in C

2017-11-07 Thread Ramsay Jones
rts of the code as > well. > > Also introduce a function free_terms() to free the memory of `struct > bisect_terms` and set_terms() to set the values of members in `struct > bisect_terms`. > > Helped-by: Ramsay Jones > Mentored-by: Lars Schneider > Mentored-by: Christi

Re: [PATCH v16 Part II 4/8] bisect--helper: `check_and_set_terms` shell function in C

2017-11-07 Thread Ramsay Jones
!has_term_file) { > + if (one_of(cmd, "bad", "good", NULL)) { > + free_terms(terms); > + set_terms(terms, "bad", "good"); > + return write_terms(terms->term_bad, terms->term_good); > + } > + else if (one_of(cmd, "new", "old", NULL)) { cuddle the else: '} else if (one_of()) {' OR, simply remove the else. ATB, Ramsay Jones

Re: [PATCH v16 Part II 5/8] bisect--helper: `bisect_next_check` shell function in C

2017-11-07 Thread Ramsay Jones
h_bisect_start())) { > + error(_("You need to give me at least one %s and " > + "%s revision. You can use \"git bisect %s\" " > + "and \"git bisect %s\" for that.\n"), > + voc[0], voc[1], voc[0], voc[1]); ... this is (arguably) easier to read: + vocab_bad, vocab_good, vocab_bad, vocab_good); > + goto fail; > + } else { > + error(_("You need to start by \"git bisect start\". You " > + "then need to give me at least one %s and %s " > + "revision. You can use \"git bisect %s\" and " > + "\"git bisect %s\" for that.\n"), > + voc[1], voc[0], voc[1], voc[0]); ditto ATB, Ramsay Jones

Re: [PATCH v16 Part II 6/8] bisect--helper: `get_terms` & `bisect_terms` shell function in C

2017-11-07 Thread Ramsay Jones
nt to check for the pairs "--term-{good,old}" and "--term-{bad,new}", so maybe this instead: + if (one_of(argv[i], "--term-good", "--term-old", NULL)) + printf("%s\n", terms->term_good); + else if (one_of(argv[i], "--term-bad", "--term-new", NULL)) + printf("%s\n", terms->term_bad); + else > + error(_("BUG: invalid argument %s for 'git bisect > terms'.\n" > + "Supported options are: " > + "--term-good|--term-old and " > + "--term-bad|--term-new."), argv[i]); > + } > + > + return 0; > +} > + ATB, Ramsay Jones

Test failures on 'pu' branch

2017-11-08 Thread Ramsay Jones
st' failed make: *** [test] Error 2 $ Looking at the first test failure in each file, the failures seems to be related to the 'jh/partial-clone' branch. Just FYI. Thanks. ATB, Ramsay Jones

Re: Test failures on 'pu' branch

2017-11-08 Thread Ramsay Jones
On 08/11/17 20:36, Stefan Beller wrote: > On Wed, Nov 8, 2017 at 12:28 PM, Ramsay Jones > wrote: > >> t5300-pack-object.sh (Wstat: 256 Tests: 40 >> Failed: 2) > >> t5500-fetch-pack.sh (Wstat: 256 Tests:

Re: Test failures on 'pu' branch

2017-11-08 Thread Ramsay Jones
On 08/11/17 22:34, Ramsay Jones wrote: > > > On 08/11/17 20:36, Stefan Beller wrote: >> On Wed, Nov 8, 2017 at 12:28 PM, Ramsay Jones >> wrote: >> >>> t5300-pack-object.sh (Wstat: 256 Tests: 40 >&

[PATCH] fetch-object: include the fetch-object.h header file

2017-11-09 Thread Ramsay Jones
Signed-off-by: Ramsay Jones --- Hi Jeff, If you need to re-roll your 'jh/fsck-promisors' branch, could you please squash this into the relevant patch (commit 1a4b4ca4e9, "introduce fetch-object: fetch one promisor object", 02-11-2017). [This silences a sparse warning].

Re: [PATCH v2 2/9] commit: move empty message checks to libgit

2017-11-10 Thread Ramsay Jones
ich moves code from builtin/commit.c to sequencer.[ch]. ATB, Ramsay Jones

Re: [PATCH v4 07/10] introduce fetch-object: fetch one promisor object

2017-11-16 Thread Ramsay Jones
nsport_set_option(transport, TRANS_OPT_NO_HAVES, "1"); > + transport_fetch_refs(transport, ref); > +} > diff --git a/fetch-object.h b/fetch-object.h > new file mode 100644 > index 000..f371300 > --- /dev/null > +++ b/fetch-object.h > @@ -0,0 +1,6 @@ > +#ifndef FETCH_OBJECT_H > +#define FETCH_OBJECT_H > + > +extern void fetch_object(const char *remote_name, const unsigned char *sha1); > + > +#endif ATB, Ramsay Jones

Re: [PATCH v4 07/10] introduce fetch-object: fetch one promisor object

2017-11-17 Thread Ramsay Jones
On 17/11/17 19:49, Jeff Hostetler wrote: > > > On 11/16/2017 2:57 PM, Ramsay Jones wrote: >> >> >> On 16/11/17 18:12, Jeff Hostetler wrote: >>> From: Jonathan Tan >>> >>> Introduce fetch-object, providing the ability to fetch one obj

Re: [PATCH v6 00/11] Add interpret-trailers builtin

2014-03-05 Thread Ramsay Jones
include of the header file into the implementation file. Noticed by sparse ("'process_trailers' was not declared. Should it be static?"). Signed-off-by: Ramsay Jones --- trailer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/trailer.c b/trailer.c index b5de616..95d5

Re: [PATCH 1/3] test-lib: Document short options in t/README

2014-03-24 Thread Ramsay Jones
the bug. > > ---long-tests:: > +-l,--long-tests:: > This causes additional long-running tests to be run (where > available), for more exhaustive testing. > > ---valgrind=:: > +-v,--valgrind=:: The -v short option is taken, above ... :-P > Execu

Re: What's cooking in git.git (Apr 2014, #01; Fri, 4)

2014-04-07 Thread Ramsay Jones
cygwin dll with today's date!). > I have, however, lost track of what the objective of these patches is. > Is the threaded version significantly faster, and these patches are > worth it? Indeed. I haven't seen any numbers. ATB, Ramsay Jones -- 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

<    2   3   4   5   6   7   8   9   10   11   >