[PATCH v6 11/21] range-diff: add tests

2018-08-13 Thread Thomas Rast via GitGitGadget
From: Thomas Rast These are essentially lifted from https://github.com/trast/tbdiff, with light touch-ups to account for the command now being named `git range-diff`. Apart from renaming `tbdiff` to `range-diff`, only one test case needed to be adjusted: 11 - 'changed message'. The underlying

[PATCH v5 11/21] range-diff: add tests

2018-08-10 Thread Thomas Rast via GitGitGadget
From: Thomas Rast These are essentially lifted from https://github.com/trast/tbdiff, with light touch-ups to account for the command now being named `git range-diff`. Apart from renaming `tbdiff` to `range-diff`, only one test case needed to be adjusted: 11 - 'changed message'. The underlying

[PATCH v4 11/21] range-diff: add tests

2018-07-21 Thread Thomas Rast via GitGitGadget
From: Thomas Rast These are essentially lifted from https://github.com/trast/tbdiff, with light touch-ups to account for the command now being names `git range-diff`. Apart from renaming `tbdiff` to `range-diff`, only one test case needed to be adjusted: 11 - 'changed message'. The underlying

[PATCH v3 11/20] range-diff: add tests

2018-07-03 Thread Thomas Rast via GitGitGadget
From: Thomas Rast These are essentially lifted from https://github.com/trast/tbdiff, with light touch-ups to account for the command now being an option of `git branch`. Apart from renaming `tbdiff` to `range-diff`, only one test case needed to be adjusted: 11 - 'changed message

Re: XDL_FAST_HASH can be very slow

2014-12-22 Thread Thomas Rast
operations as DJB. I don't think there's a point in having such a function, since it would mean a lot of code for no throughput gain. Let's just remove XDL_FAST_HASH and the original hashing scheme in favor of a better hash function. -- Thomas Rast t...@thomasrast.ch -- To unsubscribe from this list

Re: [PATCH v2 7/8] name-hash: allow dir hashing even when !ignore_case

2014-09-06 Thread Thomas Rast
Eric Sunshine sunsh...@sunshineco.com writes: On Sat, Feb 22, 2014 at 4:17 AM, Thomas Rast t...@thomasrast.ch wrote: -static void lazy_init_name_hash(struct index_state *istate) +void init_name_hash(struct index_state *istate, int force_dir_hash) { int nr; if (istate

[PATCH v3 0/8] --remerge-diff

2014-09-06 Thread Thomas Rast
that we no longer need (in 8/8); previously, the insert-only name-hash kept them alive. - Adaptations to match Duy's changes to cache_tree handling (in 8/8). Please review the cache_tree handling extra carefully, as I'm not 100% convinced the dance there is all that is needed. Thomas Rast

[PATCH v3 1/8] merge-recursive: remove dead conditional in update_stages()

2014-09-06 Thread Thomas Rast
From: Thomas Rast tr...@inf.ethz.ch 650467c (merge-recursive: Consolidate different update_stages functions, 2011-08-11) changed the former argument 'clear' to always be true. Remove the useless conditional. Signed-off-by: Thomas Rast tr...@inf.ethz.ch Signed-off-by: Junio C Hamano gits

[PATCH v3 4/8] combine-diff: do not pass revs-dense_combined_merges redundantly

2014-09-06 Thread Thomas Rast
commit will simplify this to a single setting again. Signed-off-by: Thomas Rast t...@thomasrast.ch --- builtin/diff.c | 3 +-- combine-diff.c | 13 ++--- diff-lib.c | 6 ++ diff.h | 6 +++--- log-tree.c | 2 +- submodule.c| 5 - 6 files changed, 17

[PATCH v3 2/8] merge-recursive: internal flag to avoid touching the worktree

2014-09-06 Thread Thomas Rast
From: Thomas Rast tr...@inf.ethz.ch o-call_depth has a double function: a nonzero call_depth means we want to construct virtual merge bases, but it also means we want to avoid touching the worktree. Introduce a new flag o-no_worktree to trigger only the latter. Signed-off-by: Thomas Rast tr

[PATCH v3 5/8] Fold all merge diff variants into an enum

2014-09-06 Thread Thomas Rast
variants without yet more special casing. It should also be slightly easier to read because one does not have to ensure that the flag bits are set in an expected combination. Signed-off-by: Thomas Rast t...@thomasrast.ch --- builtin/diff-files.c| 5 +++-- builtin/diff-tree.c | 2 +- builtin

[PATCH v3 7/8] name-hash: allow dir hashing even when !ignore_case

2014-09-06 Thread Thomas Rast
The directory hash (for fast checks if the index already has a directory) was only used in ignore_case mode and so depended on that flag. Make it generally available on request. Signed-off-by: Thomas Rast t...@thomasrast.ch --- cache.h | 2 ++ name-hash.c | 13 - 2 files

[PATCH v3 6/8] merge-recursive: allow storing conflict hunks in index

2014-09-06 Thread Thomas Rast
get the _conflicts_ with --index-only, but not (conveniently) the conflict-hunk formatted files that would normally be written to the worktree. Signed-off-by: Thomas Rast t...@thomasrast.ch --- Documentation/merge-strategies.txt | 5 + merge-recursive.c | 4 merge

[PATCH v3 3/8] merge-recursive: -Xindex-only to leave worktree unchanged

2014-09-06 Thread Thomas Rast
From: Thomas Rast tr...@inf.ethz.ch Using the new no_worktree flag from the previous commit, we can teach merge-recursive to leave the worktree untouched. Expose this with a new strategy option so that scripts can use it. Signed-off-by: Junio C Hamano gits...@pobox.com --- Documentation/merge

[PATCH v3 8/8] log --remerge-diff: show what the conflict resolution changed

2014-09-06 Thread Thomas Rast
; and the output is usually much shorter than with -c. Signed-off-by: Thomas Rast t...@thomasrast.ch --- Documentation/rev-list-options.txt | 7 + log-tree.c | 297 + merge-recursive.c | 3 +- merge-recursive.h

Re: [PATCH v2 04/23] rebase -i: hide interactive command messages in verbose mode

2014-08-11 Thread Thomas Rast
Fabian Ruch baf...@gmail.com writes: Hi Thomas, Thomas Rast writes: Fabian Ruch baf...@gmail.com writes: @@ -923,6 +923,8 @@ EOF ;; esac +mkdir -p $state_dir || die Could not create temporary $state_dir + git var GIT_COMMITTER_IDENT /dev/null || die You need to set your

Re: [PATCH v2 08/23] rebase -i: reword executes pre-commit hook on interim commit

2014-08-11 Thread Thomas Rast
Fabian Ruch baf...@gmail.com writes: Hi Thomas, Thomas Rast writes: Fabian Ruch baf...@gmail.com writes: Subject: Re: [PATCH v2 08/23] rebase -i: reword executes pre-commit hook on interim commit I think the change makes sense, but can you reword the subjects that it describes the state

Re: [PATCH v2 04/23] rebase -i: hide interactive command messages in verbose mode

2014-08-08 Thread Thomas Rast
expect expected test_cmp expected actual ' Getting rid of these magic removals is a very nice change, thank you. -- Thomas Rast t...@thomasrast.ch -- To unsubscribe from this list: send the line unsubscribe git in the body of a message to majord...@vger.kernel.org More majordomo info

Re: [PATCH v2 08/23] rebase -i: reword executes pre-commit hook on interim commit

2014-08-08 Thread Thomas Rast
? -- Thomas Rast t...@thomasrast.ch -- 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

Re: [PATCH v2 23/23] rebase -i: enable options --signoff, --reset-author for pick, reword

2014-08-08 Thread Thomas Rast
not require quoting through an eval? Please add tests to this patch. -- Thomas Rast t...@thomasrast.ch -- 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

Re: [PATCH v2 20/23] rebase -i: parse to-do list command line options

2014-08-08 Thread Thomas Rast
of do_replay? -- Thomas Rast t...@thomasrast.ch -- 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

Re: [PATCH RFC v2 00/19] Enable options --signoff, --reset-author for pick, reword

2014-07-18 Thread Thomas Rast
could spell it 'reword' (with the quotes), which also disambiguates the command from the verb. -- Thomas Rast t...@thomasrast.ch -- 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

Re: [PATCH v1] rebase --root: sentinel commit cloaks empty commits

2014-07-18 Thread Thomas Rast
...$orig_head + fi shortrevisions=$shorthead Nit: I think this would be clearer if you phrased it using an 'elif', instead of nesting (but keep the comment!). -- Thomas Rast t...@thomasrast.ch -- To unsubscribe from this list: send the line unsubscribe git in the body of a message to majord

Re: [PATCH v7 25/31] prune: strategies for linked checkouts

2014-07-18 Thread Thomas Rast
, st, reason) || + st.st_mtime expire) causes the second arm to be evaluated when st.st_mtime is not initialized yet. Can you look into this? -- Thomas Rast t...@thomasrast.ch -- To unsubscribe from this list: send the line unsubscribe git in the body of a message to majord

Re: [PATCH 10/10] t9904: new __git_ps1 tests for Zsh

2014-05-29 Thread Thomas Rast
as my shell and as /bin/sh, but I do have zsh installed. Can you look into it? -- Thomas Rast t...@thomasrast.ch -- 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

Re: [PATCH] l10n: de.po: translate 45 new messages

2014-04-25 Thread Thomas Rast
Ralf Thielow ralf.thie...@gmail.com writes: Translate 45 new messages came from git.pot update in 5e078fc (l10n: git.pot: v2.0.0 round 1 (45 new, 28 removed)). Thanks for sending this with extra context, it really helps reviewing! With the small changes below, Acked-by: Thomas Rast t

Re: [PATCH] Rewrite diff-no-index.c:read_directory() to use is_dot_or_dotdot() and rename it to read_dir()

2014-03-16 Thread Thomas Rast
+ The microproject idea said Rewrite diff-no-index.c:read_directory() to use is_dot_or_dotdot(). Try to find other sites that can use that function. Are there any others? -- Thomas Rast t...@thomasrast.ch -- To unsubscribe from this list: send the line unsubscribe git in the body

Re: [PATCH] add: Use struct argv_array in run_add_interactive()

2014-03-16 Thread Thomas Rast
); - free(args); + status = run_command_v_opt(argv.argv, RUN_GIT_CMD); + argv_array_clear(argv); return status; } -- Thomas Rast t...@thomasrast.ch -- To unsubscribe from this list: send the line unsubscribe git in the body of a message to majord...@vger.kernel.org More

Re: [PATCH] Make XDF_NEED_MINIMAL default in blame.

2014-03-16 Thread Thomas Rast
Michael Andreen h...@ruin.nu writes: The --minimal flag is still there, but didn't want to break scripts depending on it. If I specify --no-minimal, does that turn it off again? -- Thomas Rast t...@thomasrast.ch -- To unsubscribe from this list: send the line unsubscribe git in the body

Re: [PATCH] mv: prevent mismatched data when ignoring errors.

2014-03-15 Thread Thomas Rast
, + (argc - i) * sizeof(char *)); This isn't right -- you are computing the size of things to be moved based on a type of char*, but 'modes' is an enum. (Valgrind spotted this.) -- Thomas Rast t...@thomasrast.ch -- To unsubscribe from this list: send the line unsubscribe git in the body

Re: [PATCH v2 3/8] merge-recursive: -Xindex-only to leave worktree unchanged

2014-02-23 Thread Thomas Rast
Eric Sunshine sunsh...@sunshineco.com writes: On Sat, Feb 22, 2014 at 4:17 AM, Thomas Rast t...@thomasrast.ch wrote: Using the new no_worktree flag from the previous commit, we can teach merge-recursive to leave the worktree untouched. Expose this with a new strategy option so that scripts

Re: [PATCH] diff: do not reuse_worktree_file for submodules

2014-02-23 Thread Thomas Rast
Thomas Rast t...@thomasrast.ch writes: Junio C Hamano gits...@pobox.com writes: Thomas Rast t...@thomasrast.ch writes: @@ -2845,8 +2845,9 @@ static struct diff_tempfile *prepare_temp_file(const char *name, remove_tempfile_installed = 1; } - if (!one-sha1_valid

[PATCH v2 0/8] log --remerge-diff

2014-02-22 Thread Thomas Rast
. I'm not completely happy yet -- see the NEEDSWORK comments -- but at least it gives consistent input to the diffing stage. This required access to the dir hash, so there's a new patch 7 that makes this possible. Patches 1-6 (used to be 1-3 and 6-8) are unchanged. Thomas Rast (8): merge

[PATCH v2 7/8] name-hash: allow dir hashing even when !ignore_case

2014-02-22 Thread Thomas Rast
The directory hash (for fast checks if the index already has a directory) was only used in ignore_case mode and so depended on that flag. Make it generally available on request. Signed-off-by: Thomas Rast t...@thomasrast.ch --- cache.h | 2 ++ name-hash.c | 19 --- 2 files

[PATCH v2 5/8] Fold all merge diff variants into an enum

2014-02-22 Thread Thomas Rast
variants without yet more special casing. It should also be slightly easier to read because one does not have to ensure that the flag bits are set in an expected combination. Signed-off-by: Thomas Rast t...@thomasrast.ch --- builtin/diff-files.c| 5 +++-- builtin/diff-tree.c | 2 +- builtin

[PATCH v2 1/8] merge-recursive: remove dead conditional in update_stages()

2014-02-22 Thread Thomas Rast
From: Thomas Rast tr...@inf.ethz.ch 650467c (merge-recursive: Consolidate different update_stages functions, 2011-08-11) changed the former argument 'clear' to always be true. Remove the useless conditional. Signed-off-by: Thomas Rast tr...@inf.ethz.ch Signed-off-by: Junio C Hamano gits

[PATCH v2 2/8] merge-recursive: internal flag to avoid touching the worktree

2014-02-22 Thread Thomas Rast
From: Thomas Rast tr...@inf.ethz.ch o-call_depth has a double function: a nonzero call_depth means we want to construct virtual merge bases, but it also means we want to avoid touching the worktree. Introduce a new flag o-no_worktree to trigger only the latter. Signed-off-by: Thomas Rast tr

[PATCH v2 6/8] merge-recursive: allow storing conflict hunks in index

2014-02-22 Thread Thomas Rast
get the _conflicts_ with --index-only, but not (conveniently) the conflict-hunk formatted files that would normally be written to the worktree. Signed-off-by: Thomas Rast t...@thomasrast.ch --- Documentation/merge-strategies.txt | 5 + merge-recursive.c | 4 merge

[PATCH v2 3/8] merge-recursive: -Xindex-only to leave worktree unchanged

2014-02-22 Thread Thomas Rast
From: Thomas Rast tr...@inf.ethz.ch Using the new no_worktree flag from the previous commit, we can teach merge-recursive to leave the worktree untouched. Expose this with a new strategy option so that scripts can use it. Signed-off-by: Junio C Hamano gits...@pobox.com --- Documentation/merge

Re: [PATCH] diff: do not reuse_worktree_file for submodules

2014-02-22 Thread Thomas Rast
Junio C Hamano gits...@pobox.com writes: Thomas Rast t...@thomasrast.ch writes: @@ -2845,8 +2845,9 @@ static struct diff_tempfile *prepare_temp_file(const char *name, remove_tempfile_installed = 1; } -if (!one-sha1_valid || -reuse_worktree_file(name, one

Re: [PATCH] sha1_file: fix delta_stack memory leak in unpack_entry

2014-02-22 Thread Thomas Rast
objects will be loosened. Gotta go soon, didn't really test it, but I bet it'll work. This looks correct to me. This comes from abe601bb, right? The change looks correct to me, too. Ow, sorry about that. Thanks for the fix! -- Thomas Rast t...@thomasrast.ch -- To unsubscribe from

Re: Fwd: git-reviewed: linking commits to review discussion in git

2014-02-22 Thread Thomas Rast
a computer can do beyond (author, authordate), anyway. Perhaps someone with a clue in UIs -- that's definitely not me -- could make a website where users can complete or correct the autogenerated mappings to go further. -- Thomas Rast t...@thomasrast.ch -- To unsubscribe from this list: send the line

Re: diff weirdness (bug?)

2014-02-17 Thread Thomas Rast
, that will not show up in a --cc diff. -- Thomas Rast t...@thomasrast.ch -- 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

Re: Is there something like a blamed diff?

2014-02-17 Thread Thomas Rast
that? This seems to come up every year or so: http://thread.gmane.org/gmane.comp.version-control.git/110369/focus=110383 -- Thomas Rast t...@thomasrast.ch -- To unsubscribe from this list: send the line unsubscribe git in the body of a message to majord...@vger.kernel.org More majordomo info

Re: Is there something like a blamed diff?

2014-02-17 Thread Thomas Rast
David Kastrup d...@gnu.org writes: Thomas Rast t...@thomasrast.ch writes: David Kastrup d...@gnu.org writes: When comparing two branches, decorating the flat diff with the respectively responsible commits seems like it would be nice to do/have (the blame on the identical parts, in contrast

Re: [RFH] hackday and GSoC topic suggestions

2014-02-16 Thread Thomas Rast
Duy Nguyen pclo...@gmail.com writes: On Sun, Feb 9, 2014 at 2:03 AM, Thomas Rast t...@thomasrast.ch wrote: Easy: * Add -p 'e' when it fails to apply should offer an obvious way of starting from the original hunk (not the broken one) or both If it's too easy, you can add a command

Re: Profiling support?

2014-02-16 Thread Thomas Rast
had bitrotted without anyone noticing. I haven't heard of any heavy users. I originally wrote them to do some basic test coverage analysis, but that's about it. -- Thomas Rast t...@thomasrast.ch -- To unsubscribe from this list: send the line unsubscribe git in the body of a message to majord

[PATCH] diff: do not reuse_worktree_file for submodules

2014-02-16 Thread Thomas Rast
$sha1, but the new-file is a directory in the worktree. Fix it by never reusing a worktree file in the submodule case. Reported-by: Grégory Pakosz gregory.pak...@gmail.com Signed-off-by: Thomas Rast t...@thomasrast.ch --- diff.c | 5 +++-- t/t4020-diff-external.sh | 30

Re: Profiling support?

2014-02-16 Thread Thomas Rast
David Kastrup d...@gnu.org writes: Thomas Rast t...@thomasrast.ch writes: David Kastrup d...@gnu.org writes: Looking in the Makefile, I just find support for coverage reports using gcov. Whatever is there with profile in it seems to be for profile-based compilation rather than using gprof

Re: Git GSoC 2014

2014-02-13 Thread Thomas Rast
: C Difficulty: hard Possible mentors: Thomas Rast and fill in libgit2 expert --- 8 --- That absolutely requires a co-mentor from the libgit2 side to do, however. Perhaps you could talk someone into it? ;-) Motivation: I believe that migrating to libgit2 is the better approach, medium term, than

Re: Git GSoC 2014

2014-02-13 Thread Thomas Rast
Junio C Hamano gits...@pobox.com writes: Thomas Rast t...@thomasrast.ch writes: Downside: not listing code merged as a goal may not make the project as shiny, neither for Git nor for the student. I'd actually view that as an upside. This sounds like a good first step for a feasibility

Re: bash completion patch

2014-02-09 Thread Thomas Rast
not be a piece of advice that is practically very useful, though ;-) That happens to me a lot, too. Perhaps it would be a clearer signal if you had an alias (or just something like gitster+patch) that we can send it to if we mean please include instead of what do you think of this? -- Thomas

Re: [PATCH] l10n: de.po: translate 27 new messages

2014-02-08 Thread Thomas Rast
Typänderung: #: wt-status.c:287 -#, fuzzy msgid unknown -msgstr unbekannt:%s +msgstr unbekannt: Do we still need the trailing colon? -- Thomas Rast t...@thomasrast.ch -- To unsubscribe from this list: send the line unsubscribe git in the body of a message to majord...@vger.kernel.org More

Re: [RFH] hackday and GSoC topic suggestions

2014-02-08 Thread Thomas Rast
. Sorry for being so procrastinative :-( I suggest we make it a rule that old projects cannot be proposed from year to year. -- Thomas Rast t...@thomasrast.ch -- To unsubscribe from this list: send the line unsubscribe git in the body of a message to majord...@vger.kernel.org More majordomo info

Re: [RFH] hackday and GSoC topic suggestions

2014-02-08 Thread Thomas Rast
-- Thomas Rast t...@thomasrast.ch -- 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

Re: [PATCH] l10n: de.po: translate 27 new messages

2014-02-08 Thread Thomas Rast
David Kastrup d...@gnu.org writes: Thomas Rast t...@thomasrast.ch writes: I don't really like 'gesondert eingehängt', how about 'transplantiert' instead? I suggest using the actual translation here as it is perfectly fitting for both literal and figurative meaning: aufgepfropft. I didn't

Re: [PATCH 12/13] Makefile: teach scripts to include make variables

2014-02-08 Thread Thomas Rast
when within 'git bisect run' -- probably there's something funky going on in the environment, quite possibly in my own configs. -- Thomas Rast t...@thomasrast.ch -- To unsubscribe from this list: send the line unsubscribe git in the body of a message to majord...@vger.kernel.org More majordomo

Re: [PATCH 3/4] line-log: convert to using diff_tree_sha1()

2014-02-06 Thread Thomas Rast
Kirill Smelkov k...@mns.spb.ru writes: Since diff_tree_sha1() can now accept empty trees via NULL sha1, we could just call it without manually reading trees into tree_desc and duplicating code. Cc: Thomas Rast t...@thomasrast.ch Signed-off-by: Kirill Smelkov k...@mns.spb.ru --- line

[PATCH 0/9] remerge diff proof of concept/RFC

2014-02-04 Thread Thomas Rast
Hi, This may look intimidating, but it's actually 3.5 separate things: merge-recursive: remove dead conditional in update_stages() merge-recursive: internal flag to avoid touching the worktree merge-recursive: -Xindex-only to leave worktree unchanged These are unchanged from

[POC PATCH 4/9] pretty: refactor add_merge_info() into parts

2014-02-04 Thread Thomas Rast
pp_commit_list() will be reused later. Signed-off-by: Thomas Rast t...@thomasrast.ch --- Necessary only for the next patch, which may be of dubious value. commit.h | 1 + pretty.c | 40 ++-- 2 files changed, 27 insertions(+), 14 deletions(-) diff --git

[PATCH 1/9] merge-recursive: remove dead conditional in update_stages()

2014-02-04 Thread Thomas Rast
From: Thomas Rast tr...@inf.ethz.ch 650467c (merge-recursive: Consolidate different update_stages functions, 2011-08-11) changed the former argument 'clear' to always be true. Remove the useless conditional. Signed-off-by: Thomas Rast tr...@inf.ethz.ch Signed-off-by: Junio C Hamano gits

[PATCH 7/9] Fold all merge diff variants into an enum

2014-02-04 Thread Thomas Rast
variants without yet more special casing. It should also be slightly easier to read because one does not have to ensure that the flag bits are set in an expected combination. Signed-off-by: Thomas Rast t...@thomasrast.ch --- builtin/diff-files.c| 5 +++-- builtin/diff-tree.c | 2 +- builtin

[POC PATCH 5/9] log: add a merge base inspection option

2014-02-04 Thread Thomas Rast
flags. This commit does not have to: the commit graph will be loaded anyway, and the room for flags is already there. As a big plus, this approach also works in a streaming fashion, showing the first few commits very quickly. Signed-off-by: Thomas Rast t...@thomasrast.ch --- As indicated

[PATCH 6/9] combine-diff: do not pass revs-dense_combined_merges redundantly

2014-02-04 Thread Thomas Rast
commit will simplify this to a single setting again. Signed-off-by: Thomas Rast t...@thomasrast.ch --- builtin/diff.c | 3 +-- combine-diff.c | 13 ++--- diff-lib.c | 6 ++ diff.h | 6 +++--- log-tree.c | 2 +- submodule.c| 5 - 6 files changed, 17

[PATCH 8/9] merge-recursive: allow storing conflict hunks in index

2014-02-04 Thread Thomas Rast
get the _conflicts_ with --index-only, but not (conveniently) the conflict-hunk formatted files that would normally be written to the worktree. Signed-off-by: Thomas Rast t...@thomasrast.ch --- Documentation/merge-strategies.txt | 5 + merge-recursive.c | 4 merge

[PATCH 2/9] merge-recursive: internal flag to avoid touching the worktree

2014-02-04 Thread Thomas Rast
From: Thomas Rast tr...@inf.ethz.ch o-call_depth has a double function: a nonzero call_depth means we want to construct virtual merge bases, but it also means we want to avoid touching the worktree. Introduce a new flag o-no_worktree to trigger only the latter. Signed-off-by: Thomas Rast tr

[PATCH 3/9] merge-recursive: -Xindex-only to leave worktree unchanged

2014-02-04 Thread Thomas Rast
From: Thomas Rast tr...@inf.ethz.ch Using the new no_worktree flag from the previous commit, we can teach merge-recursive to leave the worktree untouched. Expose this with a new strategy option so that scripts can use it. Signed-off-by: Junio C Hamano gits...@pobox.com --- Documentation/merge

[RFC PATCH 9/9] log --remerge-diff: show what the conflict resolution changed

2014-02-04 Thread Thomas Rast
; and the output is usually much shorter than with -c. Signed-off-by: Thomas Rast t...@thomasrast.ch --- Documentation/rev-list-options.txt | 7 ++ log-tree.c | 60 +++ merge-recursive.c | 3 +- merge-recursive.h | 1

Re: [PATCH/WIP v2 00/14] inotify support

2014-01-20 Thread Thomas Rast
strikes a good balance in the complexity of the protocol and the daemon's state. -- Thomas Rast t...@thomasrast.ch -- 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

Re: [PATCH 1/2] t/perf: time rev-list with UNINTERESTING commits

2014-01-20 Thread Thomas Rast
tried what happens if you point it at a bare though. It *should* fail because it tries to cd $repo/.git, but if that was itself bare... -- Thomas Rast t...@thomasrast.ch -- To unsubscribe from this list: send the line unsubscribe git in the body of a message to majord...@vger.kernel.org More

Re: [PATCH/WIP v2 08/14] read-cache: add GIT_TEST_FORCE_WATCHER for testing

2014-01-19 Thread Thomas Rast
; + autorun_watcher = 1; + } else + git_config(watcher_config, NULL); if (autorun_watcher == -1) autorun_watcher = 0; } -- Thomas Rast t...@thomasrast.ch -- To unsubscribe from this list: send the line

Re: [PATCH/WIP v2 00/14] inotify support

2014-01-19 Thread Thomas Rast
, and behind the scenes issue all watches up to the root even if we don't need them for anything other than directory renames. Ok, that's probably a confused sum of rambles. Let me know if you can make any sense of it. -- Thomas Rast t...@thomasrast.ch -- To unsubscribe from this list: send the line

Re: [PATCH/WIP v2 05/14] read-cache: put some limits on file watching

2014-01-19 Thread Thomas Rast
, newfd, data, sz) 0; free(data); -- Thomas Rast t...@thomasrast.ch -- 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

Re: [PATCH/WIP v2 02/14] read-cache: new extension to mark what file is watched

2014-01-19 Thread Thomas Rast
. -- Thomas Rast t...@thomasrast.ch -- 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] Documentation: @{-N} can refer to a commit

2014-01-18 Thread Thomas Rast
The @{-N} syntax always referred to the N-th last thing checked out, which can be either a branch or a commit (for detached HEAD cases). However, the documentation only mentioned branches. Edit in a /commit in the appropriate places. Reported-by: Kevin i...@ikke.info Signed-off-by: Thomas Rast t

Re: [PATCH v3] stash: handle specifying stashes with spaces

2014-01-07 Thread Thomas Rast
triggering the bug with unpatched git-stash. -- Thomas Rast t...@thomasrast.ch -- 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

Re: [PATCH] l10n: de.po: fix translation of 'prefix'

2014-01-03 Thread Thomas Rast
Ralf Thielow ralf.thie...@gmail.com writes: The word 'prefix' is currently translated as 'Prefix' which is not a German word. It should be translated as 'Präfix'. Indeed :-) Thanks! -- Thomas Rast t...@thomasrast.ch -- To unsubscribe from this list: send the line unsubscribe git

Re: [RFH/PATCH] graph: give an extra gap after showing root commit

2014-01-03 Thread Thomas Rast
actual + test_cmp expect actual +' -- Thomas Rast t...@thomasrast.ch -- 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

Re: [PATCH] git-svn: workaround for a bug in svn serf backend

2013-12-30 Thread Thomas Rast
variables are unreferenced and then destroyed? I can't find any such guarantee. In the absence of such, wouldn't we have to keep $upa in an outer, separate scope to ensure that $fbat is destroyed first? -- Thomas Rast t...@thomasrast.ch -- To unsubscribe from this list: send the line unsubscribe git

Re: german translation bug

2013-12-28 Thread Thomas Rast
think it's a terrible choice because it suggests a transaction between multiple people, which to me sounds like it should mean push.) -- Thomas Rast t...@thomasrast.ch -- To unsubscribe from this list: send the line unsubscribe git in the body of a message to majord...@vger.kernel.org More

Re: Fwd: Error with git-svn pushing a rename

2013-12-25 Thread Thomas Rast
if people find the above workarond a sensible thing to do in git, I can submit a properly formed patch here too. If you go this way, please add a comment that explains why we need the local variable. -- Thomas Rast t...@thomasrast.ch -- To unsubscribe from this list: send the line unsubscribe

Re: [PATCH] do not pretend sha1write returns errors

2013-12-22 Thread Thomas Rast
to actually make sha1write's return code mean anything. But I just don't foresee that happening. Meh. It hasn't returned a useful value since its introduction in 2005. -- Thomas Rast t...@thomasrast.ch -- To unsubscribe from this list: send the line unsubscribe git in the body of a message

Re: [PATCH v4 0/22] pack bitmaps

2013-12-21 Thread Thomas Rast
, name_hash, 0, 0, index_pos, pack, offset); display_progress(progress_state, to_pack.nr_objects); return 1; } Much nicer. Thanks for going the extra mile! -- Thomas Rast t...@thomasrast.ch -- To unsubscribe from this list: send the line unsubscribe git in the body

Re: What's cooking in git.git (Dec 2013, #02; Fri, 6)

2013-12-08 Thread Thomas Rast
Karsten Blees karsten.bl...@gmail.com writes: Am 07.12.2013 23:23, schrieb Thomas Rast: Karsten Blees karsten.bl...@gmail.com writes: Extending 'struct hashmap_entry' with an int-sized member shouldn't waste memory on 64-bit systems. This is already documented in api-hashmap.txt, but needs

Re: [PATCH v3 11/21] pack-objects: use bitmaps when packing objects

2013-12-07 Thread Thomas Rast
= found_offset; @@ -859,10 +932,21 @@ static int add_object_entry(const unsigned char *sha1, enum object_type type, display_progress(progress_state, to_pack.nr_objects); + return 1; +} -- Thomas Rast t...@thomasrast.ch -- To unsubscribe from this list: send the line unsubscribe git

Re: [PATCH v3 12/21] rev-list: add bitmap mode to speed up object lists

2013-12-07 Thread Thomas Rast
of the support code is from [10/21] ;-) Reviewed-by: Thomas Rast t...@thomasrast.ch -- Thomas Rast t...@thomasrast.ch -- 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

Re: [PATCH v3 16/21] repack: handle optional files created by pack-objects

2013-12-07 Thread Thomas Rast
(and otherwise rely on rename() to barf). Signed-off-by: Jeff King p...@peff.net Reviewed-by: Thomas Rast t...@thomasrast.ch -- Thomas Rast t...@thomasrast.ch -- To unsubscribe from this list: send the line unsubscribe git in the body of a message to majord...@vger.kernel.org More majordomo info

Re: [PATCH v3 17/21] repack: consider bitmaps when performing repacks

2013-12-07 Thread Thomas Rast
want them on all the time. Signed-off-by: Vicent Marti tan...@gmail.com Signed-off-by: Jeff King p...@peff.net Reviewed-by: Thomas Rast t...@thomasrast.ch -- Thomas Rast t...@thomasrast.ch -- To unsubscribe from this list: send the line unsubscribe git in the body of a message to majord

Re: [PATCH v3 18/21] count-objects: recognize .bitmap in garbage-checking

2013-12-07 Thread Thomas Rast
.bitmap files, the current code reports all such files as garbage (case 1), even if their pack exists. Instead, they should be treated as case 2. Signed-off-by: Nguyễn Thái Ngọc Duy pclo...@gmail.com Signed-off-by: Jeff King p...@peff.net Reviewed-by: Thomas Rast t...@thomasrast.ch

Re: [PATCH v3 19/21] t: add basic bitmap functionality tests

2013-12-07 Thread Thomas Rast
that using bitmaps does not break anything. Signed-off-by: Jeff King p...@peff.net Reviewed-by: Thomas Rast t...@thomasrast.ch One nit: +test_expect_success JGIT 'jgit can read our bitmaps' ' + git clone . compat-us.git + ( + cd compat-us.git The name suggests a bare repo

Re: [PATCH v3 20/21] t/perf: add tests for pack bitmaps

2013-12-07 Thread Thomas Rast
test reproducible over time (not over changing GIT_PERF_LARGE_REPO, of course). -- Thomas Rast t...@thomasrast.ch -- 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

Re: [PATCH v3 21/21] pack-bitmap: implement optional name_hash cache

2013-12-07 Thread Thomas Rast
Marti tan...@gmail.com Signed-off-by: Jeff King p...@peff.net Reviewed-by: Thomas Rast t...@thomasrast.ch -- Thomas Rast t...@thomasrast.ch -- 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

Re: What's cooking in git.git (Dec 2013, #02; Fri, 6)

2013-12-07 Thread Thomas Rast
((__packed__)) with some compiler detection in git-compat-util.h though. -- Thomas Rast t...@thomasrast.ch -- 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

Re: [BUG] Core dump w/ bus error on bad mmap'd packfile

2013-12-03 Thread Thomas Rast
and see which open window the address belongs to. I need to think about the implications of doing that in a signal handler, though. -- Thomas Rast t...@thomasrast.ch -- To unsubscribe from this list: send the line unsubscribe git in the body of a message to majord...@vger.kernel.org More majordomo

Re: [PATCH] gitk: chmod +x po2msg

2013-12-03 Thread Thomas Rast
half of the series that led up to ce2c58cd? http://thread.gmane.org/gmane.comp.version-control.git/227151/focus=237937 -- Thomas Rast t...@thomasrast.ch -- To unsubscribe from this list: send the line unsubscribe git in the body of a message to majord...@vger.kernel.org More majordomo info

Re: slow git-cherry-pick.

2013-12-03 Thread Thomas Rast
further, but AFAICT it's just a rather obvious case of duplication of effort. -- Thomas Rast t...@thomasrast.ch -- 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

Re: [PATCH 3/3] send-email: set SSL options through IO::Socket::SSL::set_client_defaults

2013-12-02 Thread Thomas Rast
Ramkumar Ramachandra artag...@gmail.com writes: Thomas Rast wrote: When --smtp-encryption=ssl, we use a Net::SMTP::SSL connection, passing its -new all the options that would otherwise go to Net::SMTP-new (most options) and IO::Socket::SSL-start_SSL (for the SSL options). However, while

Re: git stash doesn't honor --work-tree or GIT_WORK_TREE

2013-12-01 Thread Thomas Rast
. Judging by the name this may be intentional. Thanks for investigating this. Duy, you are the expert on the worktree detection logic. Do you know if there is a reason for --is-inside-work-tree to not honor the GIT_WORK_TREE / GIT_DIR overrides? -- Thomas Rast t...@thomasrast.ch

Re: git stash doesn't honor --work-tree or GIT_WORK_TREE

2013-12-01 Thread Thomas Rast
Duy Nguyen pclo...@gmail.com writes: On Sun, Dec 1, 2013 at 6:12 PM, Thomas Rast t...@thomasrast.ch wrote: Øystein Walle oys...@gmail.com writes: The problem seems to be that git rev-parse --is-inside-work-tree does not honor these. In fact it doesn't even honor --git-dir or --work-tree

[PATCH] commit-slab: sizeof() the right type in xrealloc

2013-12-01 Thread Thomas Rast
When allocating the slab, the code accidentally computed the array size from s-slab (an elemtype**). The slab is an array of elemtype*, however, so we should take the size of *s-slab. Noticed-by: Nguyễn Thái Ngọc Duy pclo...@gmail.com Signed-off-by: Thomas Rast t...@thomasrast.ch --- [I hope

  1   2   3   4   5   6   7   >