h as those
solely consisting of one or a few closing braces), as was the intention
of the adjacent-moved-line heuristic.
This requires a change in some tests in that some of their lines are no
longer considered to be part of a block, because they are too short.
Signed-off-by: Jonathan Tan &
Currently, MIN_BLOCK_LENGTH is only checked when diff encounters a line
that does not belong to the current block. In particular, this means
that MIN_BLOCK_LENGTH is not checked after all lines are encountered.
Perform that check.
Signed-off-by: Jonathan Tan <jonathanta...@google.
No code in diff.c sets DIFF_SYMBOL_MOVED_LINE except in
mark_color_as_moved(), so it is redundant to clear it for the current
line. Therefore, clear it only for previous lines.
This makes a refactoring in a subsequent patch easier.
Signed-off-by: Jonathan Tan <jonathanta...@google.
if the parent function provides that
information, since it already tracks that. In addition, we avoid corner
cases such as what happens if the block is at the start of the diff
output (we must ensure that we don't read off the beginning edge, for
example).
Jonathan Tan (3):
diff: avoid redundantly
the new state of affairs. In this commit, teach fsck
that promises referenced from the reflog are not an error case; in
future commits, fsck will be taught about other cases.
Signed-off-by: Jonathan Tan <jonathanta...@google.com>
---
Documentation/technical/repository-version.txt |
On Tue, 15 Aug 2017 19:36:11 +0200
Christian Couder wrote:
> In handshake_capabilities() we use warning() when a capability
> is not supported, so the exit code of the function is 0 and no
> further error is shown. This is a problem because the warning
> message
e
observed, however.
Signed-off-by: Jonathan Tan <jonathanta...@google.com>
---
Documentation/diff-options.txt | 8 ++--
diff.c | 27 +---
diff.h | 2 +-
t/t4015-diff-whitespace.sh | 96 +++---
4 fi
.
As for the test, good point about testing the boundary conditions - I
have included another test that does that.
Jonathan Tan (3):
diff: avoid redundantly clearing a flag
diff: respect MIN_BLOCK_LENGTH for last block
diff: define block by number of non-space chars
Documentation/diff
No code in diff.c sets DIFF_SYMBOL_MOVED_LINE except in
mark_color_as_moved(), so it is redundant to clear it for the current
line. Therefore, clear it only for previous lines.
This makes a refactoring in a subsequent patch easier.
Signed-off-by: Jonathan Tan <jonathanta...@google.
Currently, MIN_BLOCK_LENGTH is only checked when diff encounters a line
that does not belong to the current block. In particular, this means
that MIN_BLOCK_LENGTH is not checked after all lines are encountered.
Perform that check.
Signed-off-by: Jonathan Tan <jonathanta...@google.
subsequent test where the non-malicious change is marked with move
colors.
Signed-off-by: Jonathan Tan <jonathanta...@google.com>
---
Documentation/diff-options.txt | 6 ++--
diff.c | 6 +++-
t/t4015-diff-whitespace.sh | 71 +--
correct, I can send
another patch to update the documentation to be less ambiguous and maybe
update the code to not use a name like MIN_BLOCK_LENGTH, as it is the
number of adjacent moved lines that we are checking, not the length of a
block.)
Jonathan Tan (3):
diff: avoid redundantly clearing a f
No code in diff.c sets DIFF_SYMBOL_MOVED_LINE except in
mark_color_as_moved(), so it is redundant to clear it for the current
line. Therefore, clear it only for previous lines.
This makes a refactoring in a subsequent patch easier.
Signed-off-by: Jonathan Tan <jonathanta...@google.
Currently, MIN_BLOCK_LENGTH is only checked when diff encounters a line
that does not belong to the current block. In particular, this means
that MIN_BLOCK_LENGTH is not checked after all lines are encountered.
Perform that check.
Signed-off-by: Jonathan Tan <jonathanta...@google.
No code in diff.c sets DIFF_SYMBOL_MOVED_LINE except in
mark_color_as_moved(), so it is redundant to clear it for the current
line. Therefore, clear it only for previous lines.
This makes a refactoring in a subsequent patch easier.
Signed-off-by: Jonathan Tan <jonathanta...@google.
, and in my work, I would also like the
rules to be relaxed. What do you think of also changing the rule to,
say, "minimum 10 non-whitespace characters"?
[1] https://public-inbox.org/git/cover.1502483486.git.jonathanta...@google.com/
Jonathan Tan (3):
diff: avoid redundantly clearing
Currently, MIN_BLOCK_LENGTH is only checked when diff encounters a line
that does not belong to the current block. In particular, this means
that MIN_BLOCK_LENGTH is not checked after all lines are encountered.
Perform that check.
Signed-off-by: Jonathan Tan <jonathanta...@google.
When noticing that the current line is not the continuation of the
current block, but the start of a new one, mark_color_as_moved() does
not check the length of the current block. Perform that check.
Signed-off-by: Jonathan Tan <jonathanta...@google.com>
---
diff.c
ot;pu" and resolving the conflicts, I
noticed some "zebra stripes" (from --color-moved) where I didn't expect
time. I'll try to figure out that issue before I resend the rest of the
patches (which will be after the relevant branches are merged to
"next").
Jonathan Tan (2):
sha1_file:
Use read_object() in its place instead. This avoids duplication of code.
This makes force_object_loose() slightly slower (because of a redundant
check of loose object storage), but only in the error case.
Signed-off-by: Jonathan Tan <jonathanta...@google.com>
---
sha1_file.
lta
base cache, will be moved to a separate file.
Signed-off-by: Jonathan Tan <jonathanta...@google.com>
---
sha1_file.c | 13 ++---
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/sha1_file.c b/sha1_file.c
index b60ae15f7..910109fd9 100644
--- a/sha1_file.c
+++ b/sh
On Thu, 10 Aug 2017 14:19:59 -0700
Junio C Hamano <gits...@pobox.com> wrote:
> Jonathan Tan <jonathanta...@google.com> writes:
>
> > Here is the complete patch set. I have only moved the exported functions
> > that operate with packfiles and their static hel
On Wed, 9 Aug 2017 08:24:40 -0400
Jeff King wrote:
> diff --git a/t/t7513-interpret-trailers.sh b/t/t7513-interpret-trailers.sh
> index e5b0718ef6..525fd53e5b 100755
> --- a/t/t7513-interpret-trailers.sh
> +++ b/t/t7513-interpret-trailers.sh
> @@ -1312,4 +1312,19 @@
On Wed, 9 Aug 2017 08:24:03 -0400
Jeff King wrote:
> diff --git a/trailer.c b/trailer.c
> index 0a0c2c264d..a4ff99f98a 100644
> --- a/trailer.c
> +++ b/trailer.c
> @@ -164,13 +164,15 @@ static void print_tok_val(FILE *outfile, const char
> *tok, const char *val)
>
On Wed, 9 Aug 2017 14:00:40 +0200
Christian Couder <christian.cou...@gmail.com> wrote:
> On Tue, Aug 8, 2017 at 10:50 PM, Jonathan Tan <jonathanta...@google.com>
> wrote:
> > On Tue, 8 Aug 2017 13:36:24 -0700
> > Stefan Beller <sbel...@google.com> wrote:
>
Signed-off-by: Jonathan Tan <jonathanta...@google.com>
---
cache.h | 1 -
pack.h | 4 ++--
packfile.c | 11 ++-
sha1_file.c | 9 -
4 files changed, 12 insertions(+), 13 deletions(-)
diff --git a/cache.h b/cache.h
index bf93477e8..41562dc0b 100644
--- a/cache.h
The function close_pack_fd() needs to be temporarily made global. Its
scope will be restored to static in a subsequent commit.
Signed-off-by: Jonathan Tan <jonathanta...@google.com>
---
builtin/am.c| 1 +
builtin/clone.c | 1 +
builtin/fetch.c | 1 +
builtin/merge.c | 1 +
c
Signed-off-by: Jonathan Tan <jonathanta...@google.com>
---
builtin/gc.c | 1 +
cache.h| 15
http-backend.c | 1 +
pack.h | 15
packfile.c | 216 +
path.c | 1 +
server-info.c
Signed-off-by: Jonathan Tan <jonathanta...@google.com>
---
cache.h | 1 -
pack.h | 2 ++
packfile.c | 25 +
sha1_file.c | 25 -
4 files changed, 27 insertions(+), 26 deletions(-)
diff --git a/cache.h b/cache.h
index f020dfade..9c7
Signed-off-by: Jonathan Tan <jonathanta...@google.com>
---
cache.h | 1 -
connected.c | 1 +
pack.h | 1 +
packfile.c | 53 +
sha1_file.c | 61 -
5 files chang
Signed-off-by: Jonathan Tan <jonathanta...@google.com>
---
cache.h | 8 --
pack.h | 10 ++--
packfile.c | 85 +
sha1_file.c | 84
4 files chang
Signed-off-by: Jonathan Tan <jonathanta...@google.com>
---
cache.h | 3 ---
http-push.c | 1 +
http-walker.c | 1 +
pack.h| 3 +++
packfile.c| 13 +
sha1_file.c | 13 -
6 files changed, 18 insertions(+), 16 deletions(-)
diff --git a/cac
Signed-off-by: Jonathan Tan <jonathanta...@google.com>
---
cache.h | 16
pack.h | 16
packfile.c | 33 +
sha1_file.c | 33 -
4 files changed, 49 insertions(+), 49 deletions(-)
diff
Use read_object() in its place instead. This avoids duplication of code.
This makes force_object_loose() slightly slower (because of a redundant
check of loose object storage), but only in the error case.
Signed-off-by: Jonathan Tan <jonathanta...@google.com>
---
sha1_file.
Signed-off-by: Jonathan Tan <jonathanta...@google.com>
---
cache.h | 14 --
pack.h | 14 ++
packfile.c | 31 +++
sha1_file.c | 31 ---
4 files changed, 45 insertions(+), 45 deletions(-)
diff --git a/c
Move the setting of oi->whence to sha1_loose_object_info() and
packed_object_info(). This allows sha1_object_info_extended() to not
need to know about the delta base cache.
Signed-off-by: Jonathan Tan <jonathanta...@google.com>
---
sha1_file.c | 13 ++---
1 file changed, 6 i
-by: Jonathan Tan <jonathanta...@google.com>
---
cache.h | 7 -
pack.h | 11 +
packfile.c | 660 ++
sha1_file.c | 676 ++--
4 files changed, 685 insertions(+), 669 del
Signed-off-by: Jonathan Tan <jonathanta...@google.com>
---
builtin/prune-packed.c | 1 +
cache.h| 2 --
diff.c | 1 +
pack.h | 2 ++
packfile.c | 6 ++
revision.c | 1 +
sha1_file.c| 6 --
7 files c
Signed-off-by: Jonathan Tan <jonathanta...@google.com>
---
cache.h | 2 --
pack.h | 2 ++
packfile.c | 8
sha1_file.c | 8
4 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/cache.h b/cache.h
index d96d36d50..656b39d51 100644
--- a/cache.h
+++ b/c
Signed-off-by: Jonathan Tan <jonathanta...@google.com>
---
builtin/cat-file.c | 1 +
cache.h| 7 +--
pack.h | 11 +++
packfile.c | 40
reachable.c| 1 +
sha1_file.c
This function needs to be global as it is used by sha1_file.c and will
be used by packfile.c.
Signed-off-by: Jonathan Tan <jonathanta...@google.com>
---
pack.h | 2 ++
packfile.c | 53 +
sha1_file.
pack.h to hold these
packfile-related functions.
In this commit, the pack name-related functions are moved. Subsequent
commits will move the other functions.
Signed-off-by: Jonathan Tan <jonathanta...@google.com>
---
Makefile | 1 +
builtin/pack-redundant.c | 1 +
c
sha1_file.c declares some static variables that store packfile-related
state. Move them to packfile.c.
They are temporarily made global, but subsequent commits will restore
their scope back to static.
Signed-off-by: Jonathan Tan <jonathanta...@google.com>
---
pack.h
that are temporarily made global, but reduced back to static
when the wide scope is no longer needed.)
Jonathan Tan (25):
pack: move pack name-related functions
pack: move static state variables
pack: move pack_report()
pack: move open_pack_index(), parse_pack_index()
pack: move
Signed-off-by: Jonathan Tan <jonathanta...@google.com>
---
cache.h | 1 -
pack.h | 1 +
packfile.c | 9 +
sha1_file.c | 9 -
4 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/cache.h b/cache.h
index dd9f9a9ae..4812f3a63 100644
--- a/cache.h
+++ b/c
Signed-off-by: Jonathan Tan <jonathanta...@google.com>
---
cache.h | 1 -
pack.h | 1 +
packfile.c | 26 ++
sha1_file.c | 26 --
4 files changed, 27 insertions(+), 27 deletions(-)
diff --git a/cache.h b/cache.h
index e29
Signed-off-by: Jonathan Tan <jonathanta...@google.com>
---
cache.h | 2 --
pack.h | 2 ++
packfile.c | 24
sha1_file.c | 24
4 files changed, 26 insertions(+), 26 deletions(-)
diff --git a/cache.h b/cache.h
index 1f0f47819..c7f
The function unuse_one_window() needs to be temporarily made global. Its
scope will be restored to static in a subsequent commit.
Signed-off-by: Jonathan Tan <jonathanta...@google.com>
---
git-compat-util.h | 2 --
pack.h| 4
packfile.c
Signed-off-by: Jonathan Tan <jonathanta...@google.com>
---
cache.h | 1 -
pack.h | 1 +
packfile.c | 40
sha1_file.c | 39 ---
4 files changed, 41 insertions(+), 40 deletions(-)
diff --git a/cac
alloc_packed_git() in packfile.c is duplicated from sha1_file.c. In a
subsequent commit, alloc_packed_git() will be removed from sha1_file.c.
Signed-off-by: Jonathan Tan <jonathanta...@google.com>
---
builtin/count-objects.c | 1 +
cache.h | 8 ---
The function open_packed_git() needs to be temporarily made global. Its
scope will be restored to static in a subsequent commit.
Signed-off-by: Jonathan Tan <jonathanta...@google.com>
---
cache.h | 1 -
pack.h | 14 +--
packfile.c
On Tue, 8 Aug 2017 13:36:24 -0700
Stefan Beller <sbel...@google.com> wrote:
> On Tue, Aug 8, 2017 at 12:32 PM, Jonathan Tan <jonathanta...@google.com>
> wrote:
> > Currently, sha1_file.c and cache.h contain many functions, both related
> > to and unrelated to pa
On Tue, 08 Aug 2017 13:19:23 -0700
Junio C Hamano <gits...@pobox.com> wrote:
> Jonathan Tan <jonathanta...@google.com> writes:
>
> > Signed-off-by: Jonathan Tan <jonathanta...@google.com>
> > ---
> > builtin/count-objects.c | 1 +
> >
On Tue, 08 Aug 2017 13:05:05 -0700
Junio C Hamano <gits...@pobox.com> wrote:
> Jonathan Tan <jonathanta...@google.com> writes:
>
> > While investigating annotating packfiles and loose objects to support
> > connectivity checks in partial clones [1], I decided to m
Signed-off-by: Jonathan Tan <jonathanta...@google.com>
---
builtin/count-objects.c | 1 +
cache.h | 8 ---
pack.c | 149
pack.h | 8 +++
sha1_file.c
Signed-off-by: Jonathan Tan <jonathanta...@google.com>
---
cache.h | 1 -
pack.c | 9 +
pack.h | 1 +
sha1_file.c | 9 -
4 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/cache.h b/cache.h
index dd9f9a9ae..4812f3a63 100644
--- a/cache.h
+++ b/c
Signed-off-by: Jonathan Tan <jonathanta...@google.com>
---
cache.h | 1 -
pack.c | 11 ++-
pack.h | 4 ++--
sha1_file.c | 9 -
4 files changed, 12 insertions(+), 13 deletions(-)
diff --git a/cache.h b/cache.h
index bf93477e8..41562dc0b 100644
--- a/cache.h
of those efforts.
Is this something worth doing, and if yes, is this in the right
direction?
[1]
https://public-inbox.org/git/20170804145113.5ceaf...@twelve2.svl.corp.google.com/
Jonathan Tan (10):
pack: move pack name-related functions
pack: move static state variables
pack: move pack_report
Signed-off-by: Jonathan Tan <jonathanta...@google.com>
---
cache.h | 1 -
connected.c | 1 +
pack.c | 53 +
pack.h | 1 +
sha1_file.c | 61 -
5 files chang
Signed-off-by: Jonathan Tan <jonathanta...@google.com>
---
cache.h | 2 --
pack.c | 24
pack.h | 2 ++
sha1_file.c | 24
4 files changed, 26 insertions(+), 26 deletions(-)
diff --git a/cache.h b/cache.h
index 1f0f47819..c7f
The function unuse_one_window() needs to be temporarily made global. Its
scope will be restored to static in a subsequent commit.
Signed-off-by: Jonathan Tan <jonathanta...@google.com>
---
git-compat-util.h | 2 --
pack.c| 49 +
The function close_pack_fd() needs to be temporarily made global. Its
scope will be restored to static in a subsequent commit.
Signed-off-by: Jonathan Tan <jonathanta...@google.com>
---
In doing this, I discovered that some builtins close the packs even
though they, in theory, should no
open_packed_git is made global.
Signed-off-by: Jonathan Tan <jonathanta...@google.com>
---
Unlike the other commits where variables and functions are made global
and then remade static, open_packed_git is not remade static (because a
function in sha1_file.c still uses it).
---
cache.h
sha1_file.c declares some static variables that store packfile-related
state. Move them to pack.c.
They are temporarily made global, but subsequent commits will restore
their scope back to static.
Signed-off-by: Jonathan Tan <jonathanta...@google.com>
---
pack.c | 14 ++
to hold these
packfile-related functions.
In this commit, the pack name-related functions are moved. Subsequent
commits will move the other functions.
Signed-off-by: Jonathan Tan <jonathanta...@google.com>
---
Makefile | 1 +
builtin/pack-redundant.c | 1 +
c
On Mon, 7 Aug 2017 15:12:11 -0400
Ben Peart wrote:
> I missed the offline discussion and so am trying to piece together what
> this latest design is trying to do. Please let me know if I'm not
> understanding something correctly.
>
> From what I can tell, objects are
On Mon, 7 Aug 2017 19:51:04 +0200
Lars Schneider <larsxschnei...@gmail.com> wrote:
>
> > On 07 Aug 2017, at 19:21, Jonathan Tan <jonathanta...@google.com> wrote:
> >
> > On Sun, 6 Aug 2017 21:58:24 +0200
> > Lars Schneider <larsxschnei...@gmail.com>
On Mon, 07 Aug 2017 10:49:28 -0700
Junio C Hamano wrote:
> Phillip Wood writes:
>
> > From: Phillip Wood
> >
> > If there was no 'Signed-off-by:' trailer but another trailer such as
> > 'Reported-by:' then 'git am
On Sun, 6 Aug 2017 21:58:24 +0200
Lars Schneider wrote:
> > + struct cmd2process *entry = (struct cmd2process *)subprocess;
> > + return subprocess_handshake(subprocess, "git-filter", versions, NULL,
> > + capabilities,
> > +
On Fri, 04 Aug 2017 15:51:08 -0700
Junio C Hamano <gits...@pobox.com> wrote:
> Jonathan Tan <jonathanta...@google.com> writes:
>
> > "Imported" objects must be in a packfile that has a ".remote"
> > file with arbitrary text (similar to the
After some discussion in [1] (in particular, about preserving the
functionality of the connectivity check as much as possible) and some
in-office discussion, here's an updated design.
Overview
This is an update of the design in [1].
The main difference between this and other related
On Wed, 02 Aug 2017 13:51:37 -0700
Junio C Hamano wrote:
> > The complication is in the "git gc" operation for the case (*).
> > Today, "git gc" uses a reachability walk to decide which objects to
> > remove --- an object referenced by no other object is fair game to
> >
On Tue, 01 Aug 2017 10:11:38 -0700
Junio C Hamano wrote:
> Let's step back a bit and think what already happens in the pre-
> lazy-object world. We record cut-off commits when a depth limited
> clone is created in "shallow". These essentially are promises,
> saying something
On Mon, 31 Jul 2017 14:21:56 -0700
Junio C Hamano <gits...@pobox.com> wrote:
> Jonathan Tan <jonathanta...@google.com> writes:
>
> > Besides review changes, this patch set now includes my rewritten
> > lazy-loading sha1_file patch, so you can now do this (excer
if
we have batching support for the most commonly used commands, but is
not tolerable now for repos that exclude a large amount of objects.
Helped-by: Ben Peart <benpe...@microsoft.com>
Signed-off-by: Jonathan Tan <jonathanta...@google.com>
---
Documentat
Teach fsck to not treat missing objects provided on the CLI as an error
when extensions.lazyobject is set.
Signed-off-by: Jonathan Tan <jonathanta...@google.com>
---
builtin/fsck.c | 2 ++
t/t0410-lazy-object.sh | 16
2 files changed, 18 insertions(+)
diff
Teach fsck to not treat refs with missing targets as an error when
extensions.lazyobject is set.
For the purposes of warning about no default refs, such refs are still
treated as legitimate refs.
Signed-off-by: Jonathan Tan <jonathanta...@google.com>
---
builtin/fsck.c | 8 +
appear whenever it is needed.
Teach fsck about the new state of affairs. In this commit, teach fsck
that missing objects referenced from the reflog are not an error case;
in future commits, fsck will be taught about other cases.
Signed-off-by: Jonathan Tan <jonathanta...@google.com>
---
Documen
Teach fsck to not treat missing objects indirectly pointed to by refs as
an error when extensions.lazyobject is set.
Signed-off-by: Jonathan Tan <jonathanta...@google.com>
---
builtin/fsck.c | 11 +++
t/t0410-lazy-object.sh | 27 +++
2 files chang
d
of allowing the objects to only be stored in the external database.
[1] https://public-inbox.org/git/xmqqzibpn1zh@gitster.mtv.corp.google.com/
[2] https://public-inbox.org/git/20170714132651.170708-2-benpe...@microsoft.com/
[3] https://public-inbox.org/git/20170620075523.26961-1-chrisc...@tuxfa
On Thu, 27 Jul 2017 11:55:46 -0700
Junio C Hamano wrote:
> My reading hiccupped after the first sentence, as the problem
> description made it sound like this was a boolean ("are we using
> lazy object feature?"), after reading "data type string". And then
> "the command in
t1450-fsck.sh does not have a test that checks fsck's behavior when a
packfile is invalid. It does have a test for when an object in a
packfile is invalid, but in that test, the packfile itself is valid.
Add such a test.
Signed-off-by: Jonathan Tan <jonathanta...@google.com>
---
I
On Thu, 27 Jul 2017 11:59:47 -0700
Junio C Hamano wrote:
> > @@ -438,6 +438,14 @@ static int fsck_handle_ref(const char *refname, const
> > struct object_id *oid,
> >
> > obj = parse_object(oid);
> > if (!obj) {
> > + if (repository_format_lazy_object) {
>
On Thu, 27 Jul 2017 12:17:37 -0700
Junio C Hamano wrote:
> The same comment as 2/4 applies here.
Noted - whatever the resolution is, I'll apply it to all the patches.
>
> > @@ -212,6 +221,8 @@ static void check_reachable_object(struct object *obj)
> > * do a full fsck
>
On Wed, 26 Jul 2017 23:42:38 +
"brian m. carlson" wrote:
> I looked at this and I like the direction it's going. It's pretty
> simple and straightforward, which I also like.
Thanks.
> What I'd recommend is that instead of making lazyObject a string, we
> make
into 4 patches so that you can see how the changes in
fsck are being tested, but eventually these should probably be combined
into 1 patch.
[1]
https://public-inbox.org/git/3420d9ae9ef86b78af1abe721891233e3f5865a2.1500508695.git.jonathanta...@google.com/
Jonathan Tan (4):
environment, fsck
Teach fsck to not treat missing objects indirectly pointed to by refs as
an error when extensions.lazyobject is set.
Signed-off-by: Jonathan Tan <jonathanta...@google.com>
---
builtin/fsck.c | 11 +++
t/t0410-lazy-object.sh | 27 +++
2 files chang
Teach fsck to not treat refs with missing targets as an error when
extensions.lazyobject is set.
For the purposes of warning about no default refs, such refs are still
treated as legitimate refs.
Signed-off-by: Jonathan Tan <jonathanta...@google.com>
---
builtin/fsck.c | 8 +
he command in that option.
Teach fsck about the new state of affairs. In this commit, teach fsck
that missing objects referenced from the reflog are not an error case;
in future commits, fsck will be taught about other cases.
Signed-off-by: Jonathan Tan <jonathanta...@google.com>
---
Documen
Teach fsck to not treat missing objects provided on the CLI as an error
when extensions.lazyobject is set.
Signed-off-by: Jonathan Tan <jonathanta...@google.com>
---
builtin/fsck.c | 2 ++
t/t0410-lazy-object.sh | 16
2 files changed, 18 insertions(+)
diff
inal dash
- no more gotos in expected cases (or at all)
Jonathan Tan (2):
Documentation: migrate sub-process docs to header
sub-process: refactor handshake to common function
Documentation/technical/api-sub-process.txt | 59
convert.c
file filter protocol
and the new multi-file filter protocol - I have updated it to something
more generic and useful.
Signed-off-by: Jonathan Tan <jonathanta...@google.com>
---
convert.c | 75
pkt-line.c| 19 --
pkt-line
Move the documentation for the sub-process API from a separate txt file
to its header file.
Signed-off-by: Jonathan Tan <jonathanta...@google.com>
---
Documentation/technical/api-sub-process.txt | 59 -
sub-process.h | 25 +
Remove the unused variable "heads" from cmd_fsck().
This variable was made unused in commit c3271a0 ("fsck: do not fallback
"git fsck " to "git fsck"", 2017-01-17).
Signed-off-by: Jonathan Tan <jonathanta...@google.com>
---
While working on fsck, I n
Changes from v1:
- Moved API docs to header file
- Updated documentation
- Updated commit message of patch 2 to explain why the error message
changed
Jonathan Tan (2):
Documentation: migrate sub-process docs to header
sub-process: refactor handshake to common function
Documentation
Move the documentation for the sub-process API from a separate txt file
to its header file.
Signed-off-by: Jonathan Tan <jonathanta...@google.com>
---
Documentation/technical/api-sub-process.txt | 59 -
sub-process.h | 25 +
file filter protocol
and the new multi-file filter protocol - I have updated it to something
more generic and useful.
Signed-off-by: Jonathan Tan <jonathanta...@google.com>
---
convert.c | 61 -
pkt-line.c| 19 ---
pkt-line.h
On Tue, 25 Jul 2017 10:38:51 -0400
Ben Peart wrote:
> Christian Couder has been working on a similar refactoring for the perl
> versions of very similar helper functions. They can be found in the
> following patch series:
>
>
On Mon, Jul 24, 2017 at 12:38 PM, Orgad Shaneh wrote:
> Sorry, I thought it's the same thing. I mean ref-in-want[1]. This
> issue in gerrit[2] was closed, claiming that ref-in-want will solve
> it. I just want to know if this is likely to be merged soon enough (I
> consider
Refactor, into a common function, the version and capability negotiation
done when invoking a long-running process as a clean or smudge filter.
This will be useful for other Git code that needs to interact similarly
with a long-running process.
Signed-off-by: Jonathan Tan <jonatha
601 - 700 of 1061 matches
Mail list logo