Nguyễn Thái Ngọc Duy writes:
> It's done so that commit->util can be removed. See more explanation in
> the commit that removes commit->util.
>
> Signed-off-by: Nguyễn Thái Ngọc Duy
> ---
> builtin/show-branch.c | 39 +++
> 1 file changed, 27 insertions(+),
Nguyễn Thái Ngọc Duy writes:
> - p->item->util = &weights[n++];
> + *commit_weight_at(&commit_weight, p->item) = &weights[n++];
Interesting to see that this cleverness was inherited from the
original code that used the util field :-). I was wondering why
the code was us
Junio C Hamano writes:
> Nguyễn Thái Ngọc Duy writes:
>
>> -refname = commit->util;
>> +refname = *revision_sources_peek(&revision_sources, commit);
>
> At first glance, I thought that the reason why this uses _peek() is
> because the "sources" is expected to only sparsely be populated,
Nguyễn Thái Ngọc Duy writes:
> - refname = commit->util;
> + refname = *revision_sources_peek(&revision_sources, commit);
At first glance, I thought that the reason why this uses _peek() is
because the "sources" is expected to only sparsely be populated,
perhaps because get_tags_and_dup
Nguyễn Thái Ngọc Duy writes:
> It's done so that commit->util can be removed. See more explanation in
> the commit that removes commit->util.
>
> Signed-off-by: Nguyễn Thái Ngọc Duy
> ---
> sequencer.c | 12 +---
> 1 file changed, 9 insertions(+), 3 deletions(-)
>
> diff --git a/sequen
On Tue, May 8, 2018 at 11:24 AM, Duy Nguyen wrote:
> On Mon, Apr 23, 2018 at 7:36 AM, Eric Sunshine
> wrote:
>> I haven't looked at the implementation, so this may be an entirely
>> stupid suggestion, but would it be possible to instead render the
>> completions as?
>>
>> % git checkout --
>
On Sun, May 13, 2018 at 5:58 AM, Martin Ågren wrote:
> Instead of carefully clearing up `value_regex` in each code path, let
> `config_store_data_clear()` handle that.
>
> Signed-off-by: Martin Ågren
> ---
> I *think* that it should be ok to `regfree()` after `regcomp()` failed,
> but I'll need t
On Sun, May 13, 2018 at 5:58 AM, Martin Ågren wrote:
> On 13 May 2018 at 10:59, Eric Sunshine wrote:
>> On Sun, May 13, 2018 at 4:23 AM Martin Ågren wrote:
>>> Introduce and use a small helper function `config_store_data_clear()` to
>>> plug these leaks. This should be safe. The memory tracked h
Nguyễn Thái Ngọc Duy writes:
> Similar to 'git reset -N', this option makes 'git apply' automatically
> mark new files as intent-to-add so they are visible in the following
> 'git diff' command and could also be committed with 'git commit -a'.
>
> Signed-off-by: Nguyễn Thái Ngọc Duy
> ---
> Do
Duy Nguyen writes:
>
> I would like an option to revert back to current behavior. I'm not a
> new user. I know what I'm doing. Please don't make me type more.
I can guarantee that nobody will stay a newbie. They either become
more proficient and aware of what they are doing without having to
th
René Scharfe writes:
> Storing integer values in pointers is a trick that seems to have worked
> so far for fast-export. A portable way to avoid that trick without
> requiring more memory would be to use a union.
>
> Or we could roll our own custom hash map, as I mused in an earlier post.
> That
--
Hello
Greetings to you please i have a business proposal for you contact me
for more detailes asap thanks.
Best Regards,
Miss.Zeliha ömer faruk
Esentepe Mahallesi Büyükdere
Caddesi Kristal Kule Binasi
No:215
Sisli - Istanbul, Turkey
Nguyễn Thái Ngọc Duy writes:
> + slot = commit_names_peek(&commit_names, c);
> + n = slot ? *slot : NULL;
Seeing this and the helper in the previous step makes me wonder if
we also want a "peek-and-then-peel" variant that encapsulates this
pattern. We'll know when we re
Nguyễn Thái Ngọc Duy writes:
> It's done so that commit->util can be removed. See more explanation in
> the commit that removes commit->util.
>
> Signed-off-by: Nguyễn Thái Ngọc Duy
> ---
> blame.c | 42 +++---
> blame.h | 2 ++
> builtin/bl
Nguyễn Thái Ngọc Duy writes:
> define_shared_commit_slab() could be used in a header file to define a
> commit-slab. One of these C files must include commit-slab-impl.h and
> "call" implement_shared_commit_slab().
>
> Signed-off-by: Nguyễn Thái Ngọc Duy
> ---
> commit-slab-hdr.h | 13 +++
Nguyễn Thái Ngọc Duy writes:
> The struct declaration and implementation macros are moved to
> commit-slab-hdr.h and commit-slab-impl.h respectively. This right now
> is not needed for current users but if we share a commit-slab for
> multiple files, we need something better than the current str
From: "Dannier Castro L"
On 13/05/2018 00:03, Duy Nguyen wrote:
On Sun, May 13, 2018 at 4:23 AM, Dannier Castro L
wrote:
For GIT new users, this complicated versatility of could
be very confused, also considering that actually the flag '--' is
completely useless (added or not, there is not
--
Hello
Greetings to you please i have a business proposal for you contact me
for more detailes asap thanks.
Best Regards,
Miss.Zeliha ömer faruk
Esentepe Mahallesi Büyükdere
Caddesi Kristal Kule Binasi
No:215
Sisli - Istanbul, Turkey
Hi,
A draft of a new Git Rev News edition is available here:
https://github.com/git/git.github.io/blob/master/rev_news/drafts/edition-39.md
Everyone is welcome to contribute in any section either by editing the
above page on GitHub and sending a pull request, or by commenting on
this GitHub is
On Sat, May 12, 2018 at 08:23:32PM -0600, Dannier Castro L wrote:
> Currently, is a complex command able to handle both
> branches and files without any distintion other than their names,
> taking into account that depending on the type (branch or file),
> the functionality is completely different
> On 13/05/2018 00:03, Duy Nguyen wrote:
>
> > On Sun, May 13, 2018 at 4:23 AM, Dannier Castro L
> > wrote:
> >> For GIT new users, this complicated versatility of could
> >> be very confused, also considering that actually the flag '--' is
> >> completely useless (added or not, there is not an
On 13/05/2018 00:03, Duy Nguyen wrote:
On Sun, May 13, 2018 at 4:23 AM, Dannier Castro L wrote:
For GIT new users, this complicated versatility of could
be very confused, also considering that actually the flag '--' is
completely useless (added or not, there is not any difference for
this com
On 13 May 2018 at 10:23, Martin Ågren wrote:
> +void config_store_data_clear(struct config_store_data *store)
I will do s/void/static void/ here...
On Thu, May 3, 2018 at 5:30 PM, Johannes Schindelin
wrote:
> + /* reduction transfer */
> + free_row = xmalloc(sizeof(int) * row_count);
> + for (int i = 0; i < row_count; i++) {
travis complains about this
hungarian.c: In function ‘compute_assignment’:
hungarian.c:47:11: erro
Due to the implementation detail of intent-to-add entries. The current
"git diff" (i.e. no treeish or --cached argument) would show the
changes in the i-t-a file, but it does not mark the file as new, while
"diff --cached" would mark the file as new while showing its content
as empty.
One evidence
Similar to 'git reset -N', this option makes 'git apply' automatically
mark new files as intent-to-add so they are visible in the following
'git diff' command and could also be committed with 'git commit -a'.
Signed-off-by: Nguyễn Thái Ngọc Duy
---
Documentation/git-apply.txt | 9 -
app
On Sun, May 13, 2018 at 09:34:03AM +0200, Johannes Sixt wrote:
> Am 13.05.2018 um 04:24 schrieb brian m. carlson:
> > diff --git a/t/t4014-format-patch.sh b/t/t4014-format-patch.sh
> > index dac3f349a3..42b3e11207 100755
> > --- a/t/t4014-format-patch.sh
> > +++ b/t/t4014-format-patch.sh
> > @@ -57
"Dannier Castro L" wrote:
> Currently, is a complex command able to handle both
> branches and files without any distintion other than their names,
> taking into account that depending on the type (branch or file),
> the functionality is completely different, the easier example:
>
> $ git check
Am 13.05.2018 um 11:17 schrieb Nguyễn Thái Ngọc Duy:
> Switch from gcc-4.8 to gcc-7. Newer compilers come with more warning
> checks (usually in -Wextra). Since -Wextra is enabled in developer
> mode (which is also enabled in travis), this lets travis report more
> warnings before other people do
The callers of the fetch_object() and fetch_objects() might
be interested in knowing if these functions succeeded or not.
Signed-off-by: Christian Couder
---
fetch-object.c | 15 +--
fetch-object.h | 6 +++---
sha1-file.c| 4 ++--
3 files changed, 14 insertions(+), 11 deletions
Instead of using the repository_format_partial_clone global
and fetch_object() directly, let's use has_odb_remote() and
odb_remote_get_direct().
Signed-off-by: Christian Couder
---
builtin/cat-file.c| 5 +++--
builtin/fetch.c | 11 ++-
builtin/gc.c
Signed-off-by: Christian Couder
---
t/t0410-partial-clone.sh | 24 +++-
1 file changed, 23 insertions(+), 1 deletion(-)
diff --git a/t/t0410-partial-clone.sh b/t/t0410-partial-clone.sh
index 6af4712da8..4a7a662512 100755
--- a/t/t0410-partial-clone.sh
+++ b/t/t0410-partial-cl
Let's make the partial clone filter specific to one odb
instead of general to all the odbs.
This makes it possible to have different partial clone
filters for different odbs.
Signed-off-by: Christian Couder
---
builtin/fetch.c | 2 +-
list-objects-filter-options.c | 26 ++
This is implemented only in the promisor remote mode
for now by calling fetch_object().
Signed-off-by: Christian Couder
---
odb-helper.c | 14 ++
odb-helper.h | 3 ++-
odb-remote.c | 17 +
odb-remote.h | 1 +
4 files changed, 34 insertions(+), 1 deletion(-)
diff --
This function will be used to get many objects from a promisor
remote.
Signed-off-by: Christian Couder
---
odb-helper.c | 15 +++
odb-helper.h | 3 +++
odb-remote.c | 17 +
odb-remote.h | 1 +
4 files changed, 36 insertions(+)
diff --git a/odb-helper.c b/odb-helper
The odb-remote.{c,h} files will contain the functions
that are called by the rest of Git mostly from
"sha1_file.c" to access the objects managed by the
odb remotes.
The odb-helper.{c,h} files will contain the functions to
actually implement communication with either the internal
functions or the e
We will need to reinitialize the odb remote configuration
as we will make some changes to it in a later commit when
we will detect that a remote is also an odb remote.
Signed-off-by: Christian Couder
---
odb-remote.c | 14 --
odb-remote.h | 1 +
2 files changed, 13 insertions(+), 2
This is a follow up from the patch series called "Promisor remotes and
external ODB support" that I sent earlier this year.
Following discussions of these patch series, where Junio said "a
minimum s/ext/remote/ would clarify what it is", I decided to rename
"external odb" to "odb remote". I am sti
On 13 May 2018 at 10:59, Eric Sunshine wrote:
> On Sun, May 13, 2018 at 4:23 AM Martin Ågren wrote:
>
>> Introduce and use a small helper function `config_store_data_clear()` to
>> plug these leaks. This should be safe. The memory tracked here is config
>> parser events. Once the users (`git_conf
Instead of carefully clearing up `key` in each code path, let
`config_store_data_clear()` handle that.
We still need to free it before replacing it, though. Move that freeing
closer to the replacing to be safe. Note that in that same part of the
code, we can no longer set `key` to the original poi
Instead of carefully clearing up `value_regex` in each code path, let
`config_store_data_clear()` handle that.
Signed-off-by: Martin Ågren
---
I *think* that it should be ok to `regfree()` after `regcomp()` failed,
but I'll need to look into that some more (and say something about it in
the commi
Switch from gcc-4.8 to gcc-7. Newer compilers come with more warning
checks (usually in -Wextra). Since -Wextra is enabled in developer
mode (which is also enabled in travis), this lets travis report more
warnings before other people do it.
Signed-off-by: Nguyễn Thái Ngọc Duy
---
.travis.yml
On Sun, May 13, 2018 at 4:23 AM Martin Ågren wrote:
> Commit fee8572c6d (config: avoid using the global variable `store`,
> 2018-04-09) dropped the staticness of a certain struct, instead letting
> the users create an instance on the stack and pass around a pointer.
> We do not free the memory th
Commit fee8572c6d (config: avoid using the global variable `store`,
2018-04-09) dropped the staticness of a certain struct, instead letting
the users create an instance on the stack and pass around a pointer.
We do not free the memory that the struct tracks. When the struct was
static, the memory
Am 13.05.2018 um 04:24 schrieb brian m. carlson:
Adjust the test so that it computes values for blobs instead of using
hard-coded hashes.
Signed-off-by: brian m. carlson
---
t/t4014-format-patch.sh | 7 ---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/t/t4014-format-patc
45 matches
Mail list logo