Jeff King writes:
> The simple fix is to call register_tempfile() in open_pack_file(), and
> just have index-pack clean up the file on its way out.
>
> But there are harder cases. For instance, imagine somebody pushes a
> 500MB file, and you have a pre-receive hook that says "too
When `--recursive` and `--reference` is given, it is reasonable to
expect that the submodules are created with references to the submodules
of the given alternate for the superproject.
An initial attempt to do this was presented to the mailing list, which
used flags that are passed around
Allow users to pass in multiple references, just as clone accepts multiple
references as well.
Signed-off-by: Stefan Beller
---
builtin/submodule--helper.c | 20
1 file changed, 12 insertions(+), 8 deletions(-)
diff --git a/builtin/submodule--helper.c
In the next patch we introduce optional references; To better distinguish
between optional and required references we rename the variable.
Signed-off-by: Stefan Beller
---
builtin/clone.c | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git
In a later patch we want to try to create alternates for submodules,
but they might not exist in the referenced superproject. So add a way
to skip the non existing references and report them.
Signed-off-by: Stefan Beller
---
Documentation/git-clone.txt | 5 -
In a later patch we want to determine if a path is suitable as an
alternate from other commands than builtin/clone. Move the checking
functionality of `add_one_reference` to `compute_alternate_path` that is
defined in cache.h.
Signed-off-by: Stefan Beller
---
builtin/clone.c
v5:
Thanks Junio, Ramsay for comments.
As the comments only address programming work as opposed to design, the
interdiff is rather small:
diff --git a/builtin/clone.c b/builtin/clone.c
index 0593aee..404c5e8 100644
--- a/builtin/clone.c
+++ b/builtin/clone.c
@@ -285,23 +285,26 @@ static void
Allow the user to pass in multiple references to update_clone.
Currently this is only internal API, but once the shell script is
replaced by a C version, this is needed.
This fixes an API bug between the shell script and the helper.
Currently the helper accepts "--reference" "--reference=foo"
as
Tests consisting of one line each can be consolidated to have fewer tests
to run as well as fewer lines of code.
When having just a few git commands, do not create a new shell but
use the -C flag in Git to execute in the correct directory.
Signed-off-by: Stefan Beller
---
No functional change intended. This commit only changes formatting
to the style we recently use, e.g. starting the body of a test with a
single quote on the same line as the header, and then having the test
indented in the following lines.
Whenever we change directories, we do that in subshells.
"Philip Oakley" writes:
> The other option is to simply build a guide-list in exactly the same
> format as the command list (which if it works can be merged
> later). Re-use the existing code, etc.
Yeah, that sounds like a good way to go forward. To implement typo
Stefan Beller writes:
> As the comments only address programming work as opposed to design, the
> interdiff is rather small:
Thanks. Will queue. I think we do not need that extra err strbuf
in add_one_reference(), but we can go either way and it is not worth
rerolling.
Jeff King writes:
>> REF_NODEREF, UPDATE_REFS_DIE_ON_ERR);
>> if (!opts->quiet) {
>> if (old->path &&
>> -(advice_detached_head == 1 ||
>> - (advice_detached_head == -1 &&
>>
On Mon, Aug 15, 2016 at 1:38 PM, Junio C Hamano wrote:
> Jacob Keller writes:
>
>> Some people have suggested this simple idea, and I like it, but they
>> did mention that modifying the cover letter now requires a rebase over
>> a potentially large
On Mon, Aug 15, 2016 at 8:37 AM, Junio C Hamano wrote:
> Jacob Keller writes:
>
>> I will look more into how to do the log version tomorrow, if I am
>> still stuck I will re-work the patches as you suggest here.
>>
>> I am hoping I can find a good
On Mon, Aug 15, 2016 at 03:48:55PM -0700, Junio C Hamano wrote:
> Jeff King writes:
>
> > The simple fix is to call register_tempfile() in open_pack_file(), and
> > just have index-pack clean up the file on its way out.
> >
> > But there are harder cases. For instance, imagine
On 15 August 2016 at 20:24, Johannes Schindelin
wrote:
> Would it not be more appropriate to teach --git-path hooks to respect the
> core.hooksPath variable? This would be in line with --git-path objects
> respecting the GIT_OBJECT_DIRECTORY environment variable.
101 - 117 of 117 matches
Mail list logo