I didn't actually read the code. Instead, I started with the README and
decided to provide both text and UX comments all mixed up. These are
mostly my personal preferences; take them or leave them as you choose.
I'm really excited about this tool and I think it's got great potential!
On Tue,
On Tue, 2015-11-10 at 12:42 +0100, Michael Haggerty wrote:
> Another re-roll of this patch series, to address the comments of
> Ramsay Jones (thanks!) about v7 [1].
>
> This version has the following changes compared to v7:
>
> * Drop "refs: make is_branch public" patch. This was already done
>
On Wed, 2015-11-11 at 09:48 +, Richard Ipsum wrote:
> >
> > > + (master)$ git candidate submit origin archiverepo
> > > + Review added successfully
> >
> > Is the contributor automatically (optionally) emailed on this? If not,
> > consider this a feature request for this.
>
> There's no
On Mon, 2015-11-09 at 18:54 +, Ramsay Jones wrote:
>
> On 09/11/15 17:03, Michael Haggerty wrote:
> > From: David Turner <dtur...@twopensource.com>
> >
> > is_branch was already non-static, but this patch declares it in the
> > header.
> >
On Mon, 2015-11-09 at 18:03 +0100, Michael Haggerty wrote:
> This is another reroll of the pre-vtable part of the refs-backend
> patch series dt/refs-backend-pre-vtable. v6 [1] proved cumbersome
> because it conflicted messily with lf/ref-is-hidden-namespace [2]. The
> conflicts were partly due to
that a range request is being made. By manually
setting the range header instead of using CURLOPT_RANGE, we were
hiding the fact that this was a range request from libcurl. This
could cause corruption.
Signed-off-by: David Turner <dtur...@twopensource.com>
---
This version breaks the range
that a range request is being made. By manually
setting the range header instead of using CURLOPT_RANGE, we were
hiding the fact that this was a range request from libcurl. This
could cause corruption.
Signed-off-by: David Turner <dtur...@twopensource.com>
---
This version applies on top of pu. I
Please disregard this; I noticed I missed a few instances. Will reroll
shortly.
On Fri, 2015-10-30 at 18:41 -0400, David Turner wrote:
> A HTTP server is permitted to return a non-range response to a HTTP
> range request (and Apache httpd in fact does this in some cases).
> While libc
On Tue, 2015-11-03 at 08:40 +0100, Michael Haggerty wrote:
> + * extras and skip must be sorted lists of reference names. Either one
> + * can be NULL, signifying the empty list.
> + */
My version had:
"skip can be NULL; extras cannot."
The first thing that function does is:
In unpack-trees.c, in verify_uptodate_1, we check ie_match_stat. This
returns OWNER_CHANGED if a file has changed ownership since the index
was updated. Do we actually care about that particular case? Or really
anything other than DATA_CHANGED?
(We noticed this due to a bug in our watchman
On Wed, 2015-11-04 at 18:38 -0800, Junio C Hamano wrote:
> David Turner <dtur...@twopensource.com> writes:
>
> > In unpack-trees.c, in verify_uptodate_1, we check ie_match_stat. This
> > returns OWNER_CHANGED if a file has changed ownership since the index
> > was
On Thu, 2015-11-05 at 05:00 +0100, Michael Haggerty wrote:
> On 11/04/2015 10:01 PM, David Turner wrote:
> > On Tue, 2015-11-03 at 08:40 +0100, Michael Haggerty wrote:
> >> + * extras and skip must be sorted lists of reference names. Either one
> >> + * can be NULL
On Tue, 2015-11-03 at 08:09 +0100, Christian Couder wrote:
> On Tue, Nov 3, 2015 at 6:45 AM, Duy Nguyen <pclo...@gmail.com> wrote:
> > On Mon, Nov 2, 2015 at 9:56 PM, David Turner <dtur...@twopensource.com>
> > wrote:
> >> On Thu, 2015-10-29 at 09:10 +0100, C
On Tue, 2015-11-03 at 20:17 +0100, Duy Nguyen wrote:
> On Mon, Nov 2, 2015 at 11:03 PM, David Turner <dtur...@twopensource.com>
> wrote:
> > On Sun, 2015-11-01 at 14:55 +0100, Nguyễn Thái Ngọc Duy wrote:
> >>
> >>+#define CE_NO_WATCH (0x0001)
> >
On Thu, 2015-10-29 at 09:10 +0100, Christian Couder wrote:
> > We're using Watchman at Twitter. A week or two ago posted a dump of our
> > code to github, but I would advise waiting a day or two to use it, as
> > I'm about to pull a large number of bugfixes into it (I'll update this
> > thread
On Sun, 2015-11-01 at 14:55 +0100, Nguyễn Thái Ngọc Duy wrote:
> The previous patch has the logic to clear bits in 'WAMA' bitmap. This
> patch has logic to set bits as told by watchman. The missing bit,
> _using_ these bits, are not here yet.
>
> A lot of this code is written
On Sun, 2015-11-01 at 14:42 +0100, Nguyễn Thái Ngọc Duy wrote:
> + memcpy(new_mmap, istate->mmap, istate->mmap_size - 20);
> +
> + /*
> + * The trailing hash must be written last after everything is
> + * written. It's the indication that the shared memory is now
> + *
On Sun, 2015-11-01 at 09:17 +0100, Michael Haggerty wrote:
> On 10/28/2015 03:14 AM, David Turner wrote:
> > The common ref code will build up a ref transaction. Backends will
> > then commit it. So the transaction creation and update functions should
> > be in the commo
that a range request is being made. By manually
setting the range header instead of using CURLOPT_RANGE, we were
hiding the fact that this was a range request from libcurl. This
could cause corruption.
Signed-off-by: David Turner <dtur...@twopensource.com>
---
This one incorporates Jeff's suggestions
On Sun, 2015-11-01 at 14:55 +0100, Nguyễn Thái Ngọc Duy wrote:
>
>+#define CE_NO_WATCH (0x0001)
This name seems very confusing to me. CE_NO_WATCHMAN_STAT?
CE_UNKNOWN_TO_WATCHMAN?
(one reason it may seem more confusing to me than to others is that
Twitter's code has a concept of files that we
that a range request is being made. By manually
setting the range header instead of using CURLOPT_RANGE, we were
hiding the fact that this was a range request from libcurl. This
could cause corruption.
Signed-off-by: David Turner <dtur...@twopensource.com>
---
http.c | 5 +++--
1 file changed, 3 inse
On Mon, 2015-11-02 at 17:10 -0500, Jeff King wrote:
> On Mon, Nov 02, 2015 at 10:50:10PM +0100, Andreas Schwab wrote:
>
> > Jeff King writes:
> >
> > > 4. Fix all of the callers. I suspect this would involve calling
> > > fstat(fileno(fh)) to get a real off_t.
> >
> > You
On Tue, 2015-11-03 at 12:59 +1300, Ch'Gans wrote:
> Hi there,
>
> We're using a script to verify that what we are building is clean
> against our git repository, for this we're using "git rev-parse
> --short HEAD" to get the current hash and "git diff-index --quiet
> HEAD" to check for local
On Fri, 2015-10-16 at 17:22 +0200, Torsten Bögershausen wrote:
> On 15.10.15 09:52, Lars Schneider wrote:
> > Hi,
> >
> > I noticed that "t7063-status-untracked-cache.sh" occasionally fails with
> > "not ok 24 - test sparse status with untracked cache".
>
> I can't reproduce it here.
> Do you
On Fri, 2015-10-16 at 13:34 -0700, Junio C Hamano wrote:
> David Turner <dtur...@twopensource.com> writes:
>
> > The problem is:
> >
> > trash directory.t7063-status-untracked-cache$ diff trace trace.expect
> > 3,4c3,4
> > < directory invalidati
On Wed, 2015-10-14 at 14:17 -0700, Junio C Hamano wrote:
> David Turner <dtur...@twopensource.com> writes:
>
> > + unsigned int ref_count; /* count the number of refs to this in dir_hash
> > */
>
> Me makes a mental note of the type used...
>
> >
lt;kmcgui...@twitter.com>
Signed-off-by: David Turner <dtur...@twopensource.com>
---
Fix type of ref_count (from unsigned int to int).
cache.h| 27 +++
name-hash.c| 7 ++-
read-cache.c | 6 +-
split-index.c | 13 -
unpack-trees.c | 6 -
On Wed, 2015-10-07 at 20:31 +0200, Michael Haggerty wrote:
> On 10/07/2015 03:51 AM, David Turner wrote:
> > On Mon, 2015-10-05 at 17:47 +0200, Michael Haggerty wrote:
> >> On 09/29/2015 12:02 AM, David Turner wrote:
> >>> Add a database backend for refs using LMDB
On Thu, 2015-10-15 at 13:51 -0700, Junio C Hamano wrote:
> David Turner <dtur...@twopensource.com> writes:
>
> >> > +static inline void drop_ce_ref(struct cache_entry *ce)
> >> > +{
> >> > +if (ce != NULL) {
> >> > +
On Thu, 2015-10-15 at 09:52 +0200, Lars Schneider wrote:
> Hi,
>
> I noticed that "t7063-status-untracked-cache.sh" occasionally fails with "not
> ok 24 - test sparse status with untracked cache".
>
> E.g. on OS X compiled with gcc:
> https://travis-ci.org/larsxschneider/git/jobs/85432514
>
>
From: Ronnie Sahlberg <sahlb...@google.com>
Signed-off-by: Ronnie Sahlberg <sahlb...@google.com>
Signed-off-by: David Turner <dtur...@twopensource.com>
Signed-off-by: Junio C Hamano <gits...@pobox.com>
---
refs-be-files.c | 5 -
refs.c | 5 +
2 files cha
From: Ronnie Sahlberg
Rename refs.c to refs-be-files.c to indicate that this file now
holds the implementation for the files based refs backend.
A smaller portion of the code in this file is backend agnostic and will
be moved to a a new refs.c file that will hold all the
From: Ronnie Sahlberg
Signed-off-by: Ronnie Sahlberg
Signed-off-by: Junio C Hamano
---
refs-be-files.c | 82 -
refs.c | 81
From: Ronnie Sahlberg <sahlb...@google.com>
This function can be shared across all refs backends so move it
to the common code.
Signed-off-by: Ronnie Sahlberg <sahlb...@google.com>
Signed-off-by: David Turner <dtur...@twopensource.com>
Signed-off-by: Junio C Hamano <gits...
ref_update to support alternate backends.
Signed-off-by: David Turner <dtur...@twopensource.com>
Signed-off-by: Junio C Hamano <gits...@pobox.com>
---
refs-be-files.c | 198
refs.c | 108 +++
, since it should be relatively non-controversial.
David Turner (9):
refs: make repack_without_refs and is_branch public
refs: move transaction functions into common code
refs.c: move refname_is_safe to the common code
refs.c: move copy_msg to the common code
refs.c: move peel_object
is_branch was already non-static, but this patch declares it in the
header.
Signed-off-by: Ronnie Sahlberg <sahlb...@google.com>
Signed-off-by: David Turner <dtur...@twopensource.com>
Signed-off-by: Junio C Hamano <gits...@pobox.com>
---
refs.c | 5 +++--
refs.h | 2 ++
This function does not contain any backend specific code so we move it
to the common code. This function might be used by other refs backends.
Signed-off-by: Ronnie Sahlberg <sahlb...@google.com>
Signed-off-by: David Turner <dtur...@twopensource.com>
Signed-off-by: Junio C
From: Ronnie Sahlberg <sahlb...@google.com>
These functions do not use any backend specific code so we move
them to the common code.
Signed-off-by: Ronnie Sahlberg <sahlb...@google.com>
Signed-off-by: David Turner <dtur...@twopensource.com>
Signed-off-by: Junio C Hamano
From: Ronnie Sahlberg <sahlb...@google.com>
Move read_ref_at() to the refs.c file since this function does not
contain any backend specific code.
Signed-off-by: Ronnie Sahlberg <sahlb...@google.com>
Signed-off-by: David Turner <dtur...@twopensource.com>
Signed-off-by: Ju
From: Ronnie Sahlberg <sahlb...@google.com>
Create a public version of verify_refname_available that backends can
provide.
Signed-off-by: Ronnie Sahlberg <sahlb...@google.com>
Signed-off-by: David Turner <dtur...@twopensource.com>
Signed-off-by: Junio C Hamano <gits...@p
This function does not contain any backend specific code so we
move it to the common code.
Signed-off-by: David Turner <dtur...@twopensource.com>
Signed-off-by: Junio C Hamano <gits...@pobox.com>
Signed-off-by: Michael Haggerty <mhag...@alum.mit.edu>
---
re
<sahlb...@google.com>
Signed-off-by: David Turner <dtur...@twopensource.com>
Signed-off-by: Junio C Hamano <gits...@pobox.com>
---
refs-be-files.c | 117 +---
refs.c | 116
From: Jeff King
Normally we try to avoid bumps of the whole-repository
core.repositoryformatversion field. However, it is
unavoidable if we want to safely change certain aspects of
git in a backwards-incompatible way (e.g., modifying the set
of ref tips that we must traverse to
Because HEAD and stash are per-worktree, refs.c needs to go through
the files backend to write these refs.
In this patch, we make one files backend internal functions
public. Later, we will use this to handle reflog updates for
per-worktree symbolic refs (HEAD).
Signed-off-by: David Turner <d
From: Ronnie Sahlberg <sahlb...@google.com>
Move the hidden refs functions to the refs.c file since these
functions do not contain any backend specific code.
Signed-off-by: Ronnie Sahlberg <sahlb...@google.com>
Signed-off-by: David Turner <dtur...@twopensource.com>
Signed-off-
From: Ronnie Sahlberg <sahlb...@google.com>
This function does not contain any backend specific code so we
move it to the common code.
Signed-off-by: Ronnie Sahlberg <sahlb...@google.com>
Signed-off-by: David Turner <dtur...@twopensource.com>
Signed-off-by: Junio C Hamano
From: Ronnie Sahlberg
Create a new refs.c file that will be used to hold all the refs
code that is backend agnostic and will be shared across all backends.
Signed-off-by: Ronnie Sahlberg
Signed-off-by: Junio C Hamano
---
Makefile |
From: Ronnie Sahlberg
Signed-off-by: Ronnie Sahlberg
Signed-off-by: Junio C Hamano
---
refs-be-files.c | 9 -
refs.c | 9 +
2 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/refs-be-files.c
Rename copy_msg to copy_reflog_msg and make it public.
Signed-off-by: David Turner <dtur...@twopensource.com>
Signed-off-by: Junio C Hamano <gits...@pobox.com>
Signed-off-by: Michael Haggerty <mhag...@alum.mit.edu>
---
refs-be-files.c | 28 +---
re
Ronnie Sahlberg.
Signed-off-by: David Turner <dtur...@twopensource.com>
Signed-off-by: Ronnie Sahlberg <sahlb...@google.com>
Signed-off-by: Junio C Hamano <gits...@pobox.com>
---
refs-be-files.c | 56 --
From: Ronnie Sahlberg <sahlb...@google.com>
These functions do not depend on the backend implementation so we
move them to the common code.
Signed-off-by: Ronnie Sahlberg <sahlb...@google.com>
Signed-off-by: David Turner <dtur...@twopensource.com>
Signed-off-by: Junio C Hamano
Signed-off-by: David Turner <dtur...@twopensource.com>
Signed-off-by: Junio C Hamano <gits...@pobox.com>
Signed-off-by: Michael Haggerty <mhag...@alum.mit.edu>
---
refs-be-files.c | 10 --
refs.c | 10 ++
refs.h | 2 ++
3 files changed, 12
no files-backend-specific code.
Signed-off-by: David Turner <dtur...@twopensource.com>
Signed-off-by: Junio C Hamano <gits...@pobox.com>
Signed-off-by: Michael Haggerty <mhag...@alum.mit.edu>
---
refs-be-files.c | 49 -
re
In a moment, we'll create initdb functions for ref backends, and code
from initdb that calls this function needs to move into the files
backend. So this function needs to be public.
Signed-off-by: David Turner <dtur...@twopensource.com>
Signed-off-by: Junio C Hamano <gits...@pobox.co
From: Ronnie Sahlberg
Signed-off-by: Ronnie Sahlberg
Signed-off-by: Junio C Hamano
---
refs-be-files.c | 15 ---
refs.c | 15 +++
2 files changed, 15 insertions(+), 15 deletions(-)
diff --git
From: Ronnie Sahlberg <sahlb...@google.com>
These functions do not contain any backend specific code so we move
them to the common code and share across all backends.
Signed-off-by: Ronnie Sahlberg <sahlb...@google.com>
Signed-off-by: David Turner <dtur...@twopensource.com>
Si
and the status at 12346.001 seconds,
meaning that the worktree's root directory would not be racily-dirty.
And since it was not truly dirty, occasionally the test would fail.
By making the root truly dirty, the test will always succeed.
Tested by running a few hundred times.
Signed-off-by: David
On Fri, 2015-10-16 at 09:04 -0700, Junio C Hamano wrote:
> David Turner <dtur...@twopensource.com> writes:
>
> > We also do dozens or hundreds of merges per day and only saw this quite
> > rarely. Interestingly, we could only trigger it with an alternate
> > hash
On Fri, 2015-10-16 at 08:34 +0200, Michael Haggerty wrote:
> On 10/15/2015 09:46 PM, David Turner wrote:
> > is_branch was already non-static, but this patch declares it in the
> > header.
>
> The commit message no longer reflects the patch.
>
> > Signed-
On Thu, 2015-10-15 at 05:35 +0200, René Scharfe wrote:
> Am 15.10.2015 um 00:07 schrieb David Turner:
> > From: Keith McGuigan <kmcgui...@twitter.com>
> >
> > During merges, we would previously free entries that we no longer need
> > in the destination ind
From: Ronnie Sahlberg <sahlb...@google.com>
Create a public version of verify_refname_available that backends can
provide.
Signed-off-by: Ronnie Sahlberg <sahlb...@google.com>
Signed-off-by: David Turner <dtur...@twopensource.com>
<sahlb...@google.com>
Signed-off-by: David Turner <dtur...@twopensource.com>
---
refs-be-files.c | 117 +---
refs.c | 115 +++
2 files changed, 116 insertions(+), 116 deleti
From: Ronnie Sahlberg <sahlb...@google.com>
These functions do not use any backend specific code so we move
them to the common code.
Signed-off-by: Ronnie Sahlberg <sahlb...@google.com>
Signed-off-by: David Turner <dtur...@twopensource.com>
---
re
ref_update to support alternate backends.
Signed-off-by: David Turner <dtur...@twopensource.com>
---
refs-be-files.c | 198
refs.c | 108 +++
refs.h | 91 +-
3
From: Ronnie Sahlberg <sahlb...@google.com>
Add ref backend methods for:
resolve_ref_unsafe, verify_refname_available, pack_refs, peel_ref,
create_symref, resolve_gitlink_ref.
Signed-off-by: Ronnie Sahlberg <sahlb...@google.com>
Signed-off-by: David Turner <dtur...@twitter.com>
In a moment, we'll create initdb functions for ref backends, and code
from initdb that calls this function needs to move into the files
backend. So this function needs to be public.
Signed-off-by: David Turner <dtur...@twopensource.com>
---
builtin/init-db.c | 12
c
Rename copy_msg to copy_reflog_msg and make it public.
Signed-off-by: David Turner <dtur...@twopensource.com>
---
refs-be-files.c | 28 +---
refs.c | 26 ++
refs.h | 2 ++
3 files changed, 29 insertions(+), 27 deletions(-)
From: Ronnie Sahlberg <sahlb...@google.com>
Move delete_pseudoref, delete_ref() and delete_refs() to the refs.c
file since these functions do not contain any backend specific code.
Based on a patch by Ronnie Sahlberg.
Signed-off-by: David Turner <dtur...@twopensource.com>
Signed-of
From: Ronnie Sahlberg <sahlb...@google.com>
Signed-off-by: Ronnie Sahlberg <sahlb...@google.com>
Signed-off-by: David Turner <dtur...@twopensource.com>
---
refs-be-files.c | 41 --
re
<sahlb...@google.com>
Signed-off-by: David Turner <dtur...@twopensource.com>
---
refs-be-files.c | 10 --
refs.c | 30 ++
refs.h | 15 +++
3 files changed, 53 insertions(+), 2 deletions(-)
diff --git a/refs-be-files.c b/ref
From: Ronnie Sahlberg
Rename refs.c to refs-be-files.c to indicate that this file now
holds the implementation for the files based refs backend.
A smaller portion of the code in this file is backend agnostic and will
be moved to a a new refs.c file that will hold all the
<sahlb...@google.com>
Signed-off-by: David Turner <dtur...@twopensource.com>
---
refs-be-files.c | 10 --
refs.c | 30 ++
refs.h | 15 +++
3 files changed, 53 insertions(+), 2 deletions(-)
diff --git a/refs-be-files.c b/ref
From: Ronnie Sahlberg <sahlb...@google.com>
Move read_ref_at() to the refs.c file since this function does not
contain any backend specific code.
Signed-off-by: Ronnie Sahlberg <sahlb...@google.com>
Signed-off-by: David Turner <dtur...@twopensource.com>
---
ref
Alternate refs backends might still use files to store per-worktree
refs. So the files backend's ref-loading infrastructure should be
available to those backends, just for use on per-worktree refs. Add
do_for_each_per_worktree_ref, which iterates over per-worktree refs.
Signed-off-by: David
Signed-off-by: David Turner <dtur...@twopensource.com>
---
refs-be-files.c | 10 --
refs.c | 10 ++
refs.h | 2 ++
3 files changed, 12 insertions(+), 10 deletions(-)
diff --git a/refs-be-files.c b/refs-be-files.c
index bf2fd7a..73111e7 100644
---
In the file-based backend, the reflog piggybacks on the ref lock.
Since other backends won't have the same sort of ref lock, ref backends
must also handle reflogs.
Signed-off-by: Ronnie Sahlberg <rsahlb...@google.com>
Signed-off-by: David Turner <dtur...@twopensource.com>
---
ref
This function does not contain any backend specific code so we
move it to the common code.
Signed-off-by: David Turner <dtur...@twopensource.com>
---
refs-be-files.c | 53 -
refs.c | 31 +++
We also have to make rename_ref_available public, since alternate
backends for rename_ref will need it.
Signed-off-by: David Turner <dtur...@twopensource.com>
---
refs-be-files.c | 20 +++-
refs.c | 21 +
refs.h | 7 ++-
3 files c
From: Ronnie Sahlberg <sahlb...@google.com>
These functions do not depend on the backend implementation so we
move them to the common code.
Signed-off-by: Ronnie Sahlberg <sahlb...@google.com>
Signed-off-by: David Turner <dtur...@twopensource.com>
---
re
From: Ronnie Sahlberg <sahlb...@google.com>
Signed-off-by: Ronnie Sahlberg <sahlb...@google.com>
Signed-off-by: David Turner <dtur...@twopensource.com>
---
refs-be-files.c | 5 -
refs.c | 5 +
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/refs
Please disregard this one; I rewrorded the commit message and forgot to
delete this patch.
On Mon, 2015-10-12 at 17:51 -0400, David Turner wrote:
> From: Ronnie Sahlberg <sahlb...@google.com>
>
> Add a ref structure for backend methods. Start by adding a method pointer
> f
From: Ronnie Sahlberg <sahlb...@google.com>
This function does not contain any backend specific code so we
move it to the common code.
Signed-off-by: Ronnie Sahlberg <sahlb...@google.com>
Signed-off-by: David Turner <dtur...@twopensource.com>
---
ref
From: Ronnie Sahlberg <sahlb...@google.com>
Move the hidden refs functions to the refs.c file since these
functions do not contain any backend specific code.
Signed-off-by: Ronnie Sahlberg <sahlb...@google.com>
Signed-off-by: David Turner <dtur...@twopensource.com>
---
re
From: Ronnie Sahlberg
Create a new refs.c file that will be used to hold all the refs
code that is backend agnostic and will be shared across all backends.
Signed-off-by: Ronnie Sahlberg
---
Makefile | 1 +
refs.c | 3 +++
2 files changed, 4
From: Ronnie Sahlberg
Signed-off-by: Ronnie Sahlberg
---
refs-be-files.c | 9 -
refs.c | 9 +
2 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/refs-be-files.c b/refs-be-files.c
index 1214d9e..ecf2b33 100644
---
From: Ronnie Sahlberg
Signed-off-by: Ronnie Sahlberg
---
refs-be-files.c | 15 ---
refs.c | 15 +++
2 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/refs-be-files.c b/refs-be-files.c
index
code (to simplify the implementation
of ref backends, and to simplify the next patch)
refs: always handle non-normal refs in files backend (cross-backend
transactions)
David Turner (24):
refs: make repack_without_refs and is_branch public
refs: move transaction functions into common code
refs
From: Ronnie Sahlberg
Signed-off-by: Ronnie Sahlberg
---
refs-be-files.c | 82 -
refs.c | 81
2 files changed, 81 insertions(+),
is_branch was already non-static, but this patch declares it in the
header.
Signed-off-by: Ronnie Sahlberg <sahlb...@google.com>
Signed-off-by: David Turner <dtur...@twopensource.com>
---
refs.c | 9 +
refs.h | 13 +
2 files changed, 14 insertions(+), 8 deleti
. If those tests are
changed to use the update-ref machinery or test-refs-be-db (or, in the
case of packed-refs, corrupt refs, and dumb fetch tests, are skipped),
the only remaining failing tests are the git-new-workdir tests and the
gitweb tests.
Signed-off-by: David Turner <dtur...@twopensource.
Add method for for_each_reftype_fullpath.
Signed-off-by: David Turner <dtur...@twopensource.com>
---
refs-be-files.c | 11 +++
refs.c | 7 +++
refs.h | 3 +++
3 files changed, 21 insertions(+)
diff --git a/refs-be-files.c b/refs-be-files.c
index 2e2399e..c
Because HEAD and stash are per-worktree, refs.c needs to go through
the files backend to write these refs.
In this patch, we make one files backend internal functions
public. Later, we will use this to handle reflog updates for
per-worktree symbolic refs (HEAD).
Signed-off-by: David Turner <d
The file backend doesn't need this function, but other backends might.
Signed-off-by: David Turner <dtur...@twopensource.com>
Signed-off-by: Ronnie Sahlberg <rsahlb...@google.com>
---
refs-be-files.c | 6 ++
refs.c | 3 ++-
refs.h | 4 +++-
3 files changed, 1
Signed-off-by: Ronnie Sahlberg <rsahlb...@google.com>
Signed-off-by: David Turner <dtur...@twopensource.com>
---
refs-be-files.c | 5 +++--
refs.c | 6 ++
refs.h | 1 +
3 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/refs-be-files.c b/refs-be-f
Add a new option, --refs-backend-type, to allow the ref backend type to
be set on new clones.
Submodules must use the same ref backend as the parent repository, so
we also pass the --refs-backend-type option option when cloning
submodules.
Signed-off-by: David Turner <dtur...@twopensource.
Add tests for the database backend.
Signed-off-by: David Turner <dtur...@twopensource.com>
Helped-by: Dennis Kaarsemaker <den...@kaarsemaker.net>
---
t/t1460-refs-be-db.sh| 1109 ++
t/t1470-refs-be-db-reflog.sh | 359 ++
t
This function does not contain any backend specific code so we
move it to the common code.
Signed-off-by: Ronnie Sahlberg <sahlb...@google.com>
Signed-off-by: David Turner <dtur...@twopensource.com>
---
refs-be-files.c | 33 -
refs.c
The check for duplicate refnames in a transaction is needed for
all backends, so move it to the common code.
ref_transaction_commit_fn gains a new argument, the sorted
string_list of affected refnames.
Signed-off-by: David Turner <dtur...@twopensource.com>
---
refs-be-files.
to the base ref then goes through the ordinary backend, while
the files backend is directly called to update the symref's reflog.
Signed-off-by: David Turner <dtur...@twopensource.com>
---
refs.c | 141 -
1 file changed, 139 insertions
401 - 500 of 1485 matches
Mail list logo