On Tue, Oct 4, 2016 at 2:49 PM, Jeff King <p...@peff.net> wrote:
> On Tue, Oct 04, 2016 at 02:43:24PM -0700, Jacob Keller wrote:
>
>> > Hmm. Now I am puzzled, because I _did_ line up them specifically to make
>> > this clear. I put the numbers under the &q
On Tue, Oct 4, 2016 at 2:46 PM, Junio C Hamano <gits...@pobox.com> wrote:
> Jacob Keller <jacob.kel...@gmail.com> writes:
>
>> On Mon, Oct 3, 2016 at 1:35 PM, Jeff King <p...@peff.net> wrote:
>>> This function forms a sha1 as "xx/...", but
On Tue, Oct 4, 2016 at 1:55 PM, Jeff King <p...@peff.net> wrote:
> On Tue, Oct 04, 2016 at 01:52:19PM -0700, Jacob Keller wrote:
>
>> >> >> > +# Note: These tests depend on the hard-coded value of 5 as "too
>> >> >> > deep". We star
On Tue, Oct 4, 2016 at 1:49 PM, Jeff King <p...@peff.net> wrote:
> On Tue, Oct 04, 2016 at 01:44:23PM -0700, Jacob Keller wrote:
>
>> On Tue, Oct 4, 2016 at 6:48 AM, Jeff King <p...@peff.net> wrote:
>> > On Mon, Oct 03, 2016 at 10:57:48PM -0700, Jacob Keller w
On Tue, Oct 4, 2016 at 6:48 AM, Jeff King <p...@peff.net> wrote:
> On Mon, Oct 03, 2016 at 10:57:48PM -0700, Jacob Keller wrote:
>
>> > diff --git a/t/t5613-info-alternate.sh b/t/t5613-info-alternate.sh
>> > index 7bc1c3c..b393613 100755
>> > --- a/t/t5613-in
On Tue, Oct 4, 2016 at 6:53 AM, Jeff King <p...@peff.net> wrote:
> On Mon, Oct 03, 2016 at 11:05:42PM -0700, Jacob Keller wrote:
>
>> This definitely makes reading the following function much easier,
>> though the diff is a bit funky. I think the end result is much
&g
On Tue, Oct 4, 2016 at 6:47 AM, Jeff King <p...@peff.net> wrote:
> On Mon, Oct 03, 2016 at 10:52:39PM -0700, Jacob Keller wrote:
>
>> On Mon, Oct 3, 2016 at 1:34 PM, Jeff King <p...@peff.net> wrote:
>> > Our normal test style these days puts the opening quote of
On Tue, Oct 4, 2016 at 6:41 AM, Jeff King <p...@peff.net> wrote:
> On Mon, Oct 03, 2016 at 10:47:31PM -0700, Jacob Keller wrote:
>
>> > The number of patches is a little intimidating, but I tried hard to
>> > break the refactoring down into a sequence of obvious
On Mon, Oct 3, 2016 at 1:36 PM, Jeff King wrote:
> On a case-insensitive filesystem, we should realize that
> "a/objects" and "A/objects" are the same path. We already
> use fspathcmp() to check against the main object directory,
> but until recently we couldn't use it for
On Mon, Oct 3, 2016 at 1:36 PM, Jeff King wrote:
> We recursively expand alternates repositories, so that if A
> borrows from B which borrows from C, A can see all objects.
>
> For the root object database, we allow relative paths, so A
> can point to B as "../B/objects". However,
\On Mon, Oct 3, 2016 at 1:36 PM, Jeff King wrote:
> There's no way to get the list of alternates that git
> computes internally; our tests only infer it based on which
> objects are available. In addition to testing, knowing this
> list may be helpful for somebody debugging their
On Mon, Oct 3, 2016 at 1:36 PM, Jeff King wrote:
> It's currently the responsibility of the caller to give
> fill_sha1_file() enough bytes to write into, leading them to
> manually compute the required lengths. Instead, let's just
> write into a strbuf so that it's impossible to
On Mon, Oct 3, 2016 at 1:35 PM, Jeff King wrote:
> This function forms a sha1 as "xx/...", but skips over
> the slot for the slash rather than writing it, leaving it to
> the caller to do so. It also does not bother to put in a
> trailing NUL, even though every caller would
On Mon, Oct 3, 2016 at 1:35 PM, Jeff King wrote:
> The alternate_object_database struct uses a single buffer
> both for storing the path to the alternate, and as a scratch
> buffer for forming object names. This is efficient (since
> otherwise we'd end up storing the path twice),
On Mon, Oct 3, 2016 at 1:35 PM, Jeff King wrote:
> Allocating a struct alternate_object_database is tricky, as
> we must over-allocate the buffer to provide scratch space,
> and then put in particular '/' and NUL markers.
>
> Let's encapsulate this in a function so that the
On Mon, Oct 3, 2016 at 1:35 PM, Jeff King wrote:
> The submodule code wants to temporarily add an alternate
> object store to our in-memory alt_odb list, but does it
> manually. Let's provide a helper so it can reuse the code in
> link_alt_odb_entry().
>
> While we're adding our
On Mon, Oct 3, 2016 at 1:34 PM, Jeff King wrote:
> The string handling in link_alt_odb_entry() is mostly an
> artifact of the original version, which took the path as a
> ptr/len combo, and did not have a NUL-terminated string
> until we created one in the alternate_object_database
On Mon, Oct 3, 2016 at 1:34 PM, Jeff King wrote:
> When we add a new alternate to the list, we try to normalize
> out any redundant "..", etc. However, we do not look at the
> return value of normalize_path_copy(), and will happily
> continue with a path that could not be
On Mon, Oct 3, 2016 at 1:34 PM, Jeff King wrote:
> These tests are just trying to show that we allow recursion
> up to a certain depth, but not past it. But the counting is
> a bit non-intuitive, and rather than test at the edge of the
> breakage, we test "OK" cases in the middle
On Mon, Oct 3, 2016 at 1:34 PM, Jeff King wrote:
> Our usual style when working with subdirectories is to chdir
> inside a subshell or to use "git -C", which means we do not
> have to constantly return to the main test directory. Let's
> convert this old test, which does not follow
On Mon, Oct 3, 2016 at 1:34 PM, Jeff King wrote:
> Our normal test style these days puts the opening quote of
> the body on the description line, and indents the body with
> a single tab. This ancient test did not follow this.
>
I was surprised you didn't do this first, but it
On Mon, Oct 3, 2016 at 1:34 PM, Jeff King wrote:
> Besides being our normal style, this correctly checks for an
> error exit() versus signal death.
>
Another very simple but obvious improvement.
Regards,
Jake
> Signed-off-by: Jeff King
> ---
>
On Mon, Oct 3, 2016 at 1:33 PM, Jeff King wrote:
> This function makes sure that "git fsck" does not report any
> errors. But "--full" has been the default since f29cd39
> (fsck: default to "git fsck --full", 2009-10-20), and we can
> use the exit code (instead of counting the
On Mon, Oct 3, 2016 at 1:33 PM, Jeff King wrote:
> This function was never used since its inception in dd05ea1
> (test case for transitive info/alternates, 2006-05-07).
> Which is just as well, since it mutates the repo state in a
> way that would invalidate further tests, without
On Mon, Oct 3, 2016 at 1:33 PM, Jeff King wrote:
> This series is the result of René nerd-sniping me with the claim that we
> could "easily" teach count-objects to print out the list of alternates
> in:
>
> http://public-inbox.org/git/c27dc1a4-3c7a-2866-d9d8-f5d3eb161...@web.de/
On Fri, Sep 30, 2016 at 3:56 AM, SZEDER Gábor wrote:
>> On Thu, Sep 29, 2016 at 1:33 AM, Jeff King wrote:
>> > There's no way to do this short of "%ad" and --date=short,
>> > but that limits you to having a single date format in the
>> > output.
>> >
>> > This
On Thu, Sep 29, 2016 at 1:33 AM, Jeff King wrote:
> There's no way to do this short of "%ad" and --date=short,
> but that limits you to having a single date format in the
> output.
>
> This would possibly be better done with something more like
> "%ad(short)".
>
> Signed-off-by:
On Thu, Sep 29, 2016 at 10:19 AM, Junio C Hamano wrote:
> Jeff King writes:
>> - "cat-file --batch-check" can show you the sha1 and type, but it
>> won't abbreviate sha1s, and it won't show you commit/tag information
>>
>> - "log --stdin --no-walk" will
On Mon, Sep 26, 2016 at 9:36 AM, Linus Torvalds
wrote:
> This looks very good to me, but I wonder if it couldn't be even more
> aggressive.
>
> In particular, the only hashes that most people ever use in short form
> are commit hashes. Those are the ones you'd use
On Mon, Sep 19, 2016 at 6:37 PM, Jeff King wrote:
> On Mon, Sep 19, 2016 at 04:40:22PM -0700, Josh Triplett wrote:
>
>> > - there are a non-trivial number of patches for other projects (JGIT,
>> > EGIT, StGit, etc). This is somewhat unique to git, where we discuss
>> > a
On Mon, Sep 19, 2016 at 4:55 PM, Josh Triplett <j...@joshtriplett.org> wrote:
> On Mon, Sep 19, 2016 at 04:46:06PM -0700, Jacob Keller wrote:
>> On Mon, Sep 19, 2016 at 4:40 PM, Josh Triplett <j...@joshtriplett.org> wrote:
>> > On Mon, Sep 19, 2016 at 04:
On Mon, Sep 19, 2016 at 4:40 PM, Josh Triplett wrote:
> On Mon, Sep 19, 2016 at 04:34:35PM -0700, Jeff King wrote:
>> As far as your patch goes, I'd be OK with defining:
>>
>> --rfc::
>> Pretend as if `--subject-prefix='RFC PATCH'` was given.
>>
Would:
Shorthand
On Mon, Sep 19, 2016 at 4:34 PM, Jeff King wrote:
> - there are a non-trivial number of patches for other projects (JGIT,
> EGIT, StGit, etc). This is somewhat unique to git, where we discuss
> a lot of related projects on the list. But I wonder if other
> projects
On Mon, Sep 19, 2016 at 1:31 PM, Martin Bammer wrote:
> Hi,
>
> it would be nice to have an option to have a .git.tar instead of the .git
> directory tree. This tree quickly gets very big and copy and compare actions
> take very long. I've observed that even in small projects
On Mon, Sep 19, 2016 at 6:58 AM, Paul Williamson
wrote:
> Hi,
>
> We use git extensively on a number of repos. Recently, we have had a problem
> with one of them. This repo has a 'web_dev' branch. For copies of the repo
> cloned before a certain (recent but
On Fri, Sep 16, 2016 at 7:11 AM, Heiko Voigt wrote:
> How about just
>
>git submodule add
>
> ? I remember back in the days when I started with submodules thats the
> way I imagined submodules would work:
>
> 1. clone the submodule into a directory
> 2. git submodule add
On Sun, Sep 11, 2016 at 6:57 PM, Junio C Hamano wrote:
>
> You are excused ;-)
>
> In ancient days, "git commit " was to add the contents
> from working tree files that match to what is already in
> the index and create a commit from that state. This ran against the
>
On Sun, Sep 11, 2016 at 2:50 PM, Junio C Hamano wrote:
> Jakub Narębski writes:
>
>> I wonder, if git-commit is to acquire such feature, what would be the
>> best interface. "git commit :0:./"? "git commit -o -p "
>> (that is, "git commit --only --patch ")?
On Fri, Sep 9, 2016 at 4:22 AM, Jeff King wrote:
> If you're curious what the fix looks like, it's in:
>
> https://github.com/peff/git jk/config-repo-setup
>
> The actual fix is in the final patch, but it needed a lot of preparatory
> work to avoid breaking various programs that
On Mon, Sep 5, 2016 at 2:08 PM, Christian Neukirchen
wrote:
> Hi,
>
> I noticed the following suprising behavior:
>
> % git --version
> git version 2.10.0
>
> % git add bar
> % git status -s
> A bar
> M foo
>
> % git commit -p foo
> [stage a hunk]
> ...
> # Explicit
On Wed, Sep 7, 2016 at 4:36 PM, Stefan Beller wrote:
> The value of `ecbdata->opt` is accessible via the short variable `o`
> already, so let's use that instead.
>
> Signed-off-by: Stefan Beller
Seems reasonable.
> ---
> diff.c | 21
On Wed, Sep 7, 2016 at 3:04 PM, Jeff King wrote:
> The patch-ids code which powers "log --cherry-pick" doesn't
> look at whether each commit is a merge or not. It just feeds
> the commit's first parent to the diff, and ignores any
> additional parents.
>
The subject here is
On Wed, Sep 7, 2016 at 3:02 PM, Jeff King wrote:
> The patch-id code may be running inside another porcelain
> like "git log" or "git format-patch", and therefore may have
> set diff_detect_rename_default, either via the diff-ui
> config, or by default since 5404c11 (diff: activate
On Wed, Sep 7, 2016 at 11:11 AM, Junio C Hamano wrote:
> Michael Haggerty writes:
>
>> * In "blame: honor the diff heuristic options and config":
>>
>> * In v2, I suggested making `blame` honor all diff-related options.
>> Junio explained why this
On Wed, Sep 7, 2016 at 11:02 AM, Stefan Beller wrote:
> On Wed, Sep 7, 2016 at 10:54 AM, Junio C Hamano wrote:
>> Stefan Beller writes:
>>
>>> as we do not want to see dashes ('moved-old'), I think I'l go with
>>> "movedfrom" and
On Mon, Sep 5, 2016 at 7:20 PM, Stefan Beller wrote:
>> If I understand, this is to ensure that we don't keep re-hashing each
>> line right?
>
> No, this is to ensure we have the context sensitivity of one prior line.
>
> In the collection phase we look at each line of the
On Sun, Sep 4, 2016 at 4:42 PM, Stefan Beller wrote:
> When we color the diff, we'll mark moved lines with a different color.
>
Excellent idea. This is a very neat way to show extra information
without cluttering the diff output.
> This is achieved by doing a two passes
On Mon, Sep 5, 2016 at 11:57 AM, Junio C Hamano wrote:
> Stefan Beller writes:
>
>> diff --git a/Documentation/config.txt b/Documentation/config.txt
>> index 0bcb679..f4f51c2 100644
>> --- a/Documentation/config.txt
>> +++ b/Documentation/config.txt
>>
On Fri, Sep 2, 2016 at 8:31 PM, Stefan Beller wrote:
> When moving code (e.g. a function is moved to another part of the file or
> to a different file), the review process is different than reviewing new
> code. When reviewing moved code we are only interested in the diff as
>
From: Jacob Keller <jacob.kel...@gmail.com>
Hopefully the final revision here. I've squashed in the memory leak fix
suggested by Stefan, and the suggested changes from Junio, including his
re-worded commit messages.
interdiff between v11 and v12
diff --git c/path.c w/path.c
index 3dbc44
From: Jacob Keller <jacob.kel...@gmail.com>
Currently, do_submodule_path will attempt locating the .git directory by
using read_gitfile on /.git. If this fails it just assumes the
/.git is actually a git directory.
This is good because it allows for handling submodules which were
From: Jacob Keller <jacob.kel...@gmail.com>
A future patch will add a new format for displaying the difference of
a submodule. Make it easier by changing how we store the current
selected format. Replace the DIFF_OPT flag with an enumeration, as each
format will be mutually exclusive.
Sign
From: Junio C Hamano
"diff/log --stat" has a logic that determines the display columns
available for the diffstat part of the output and apportions it for
pathnames and diffstat graph automatically.
5e71a84a (Add output_prefix_length to diff_options, 2012-04-16)
added the
From: Jacob Keller <jacob.kel...@gmail.com>
Since we're going to be changing this function in a future patch, lets
go ahead and convert this to use object_id now.
Signed-off-by: Jacob Keller <jacob.kel...@gmail.com>
Signed-off-by: Junio C Hamano <gits...@pobox.com>
---
From: Jacob Keller <jacob.kel...@gmail.com>
A future patch is going to add a new submodule diff format which
displays an inline diff of the submodule changes. To make this easier,
and to ensure that both submodule diff formats use the same initial
header, factor out show_submodule_
From: Jacob Keller <jacob.kel...@gmail.com>
Add an extension to git-diff and git-log (and any other graph-aware
displayable output) such that "--line-prefix=" will print the
additional line-prefix on every line of output.
To make this work, we have to fix a few bugs in the grap
From: Jacob Keller <jacob.kel...@gmail.com>
Teach git-diff and friends a new format for displaying the difference
of a submodule. The new format is an inline diff of the contents of the
submodule between the commit range of the update. This allows the user
to see the actual code change
From: Jacob Keller <jacob.kel...@gmail.com>
Similar to is_null_oid(), and is_empty_blob_sha1() add an
empty_tree_oid along with helper function is_empty_tree_oid(). For
completeness, also add an "is_empty_tree_sha1()",
"is_empty_blob_sha1()", "is_empty_tre
On Wed, Aug 31, 2016 at 9:45 AM, Junio C Hamano <gits...@pobox.com> wrote:
> Jacob Keller <jacob.e.kel...@intel.com> writes:
>
>>> We probably should release for the error case. I'll do that. I don't
>>> believe do_submodule_path ensures that the
>> - t7408: modernize style
>>
>> I spotted a last-minute bug in v5, which is not a very good sign
>> (it shows that nobody is reviewing). Any more comments?
>>
>>
>
> Jacob Keller reviewed that series as announced in
>
> https://public-inbo
On Tue, Aug 30, 2016 at 10:04 PM, Stefan Beller <sbel...@google.com> wrote:
> On Wed, Aug 24, 2016 at 4:37 PM, Jacob Keller <jacob.kel...@gmail.com> wrote:
>
>> Yes that seems reasonable.
>>
>> Thanks,
>> Jake
>
> I reviewed all your comments an
On Mon, Aug 29, 2016 at 11:09 PM, Jacob Keller <jacob.kel...@gmail.com> wrote:
> On Mon, Aug 29, 2016 at 5:12 PM, Uma Srinivasan <usriniva...@twitter.com>
> wrote:
>> This is great! Thanks Jake. If you happen to have the patch ID it
>> would be helpful.
>>
&
On Mon, Aug 29, 2016 at 5:12 PM, Uma Srinivasan wrote:
> This is great! Thanks Jake. If you happen to have the patch ID it
> would be helpful.
>
> Uma
>
http://public-inbox.org/git/1472236108.28343.5.ca...@intel.com/
On Mon, Aug 29, 2016 at 4:15 PM, Junio C Hamano wrote:
> Uma Srinivasan writes:
>> This fixes my issue but what do you think? Is this the right way to
>> fix it? Is there a better way?
>
> I think we already have a helper function that does a lot
On Mon, Aug 29, 2016 at 12:49 PM, Junio C Hamano <gits...@pobox.com> wrote:
> Jacob Keller <jacob.kel...@gmail.com> writes:
>
>>> What's wrong with simply using 'HEAD' for scripting?
>>
>> When you want to display the current branch to the user, e.g. when
>
On Sun, Aug 28, 2016 at 6:56 AM, Jakub Narębski wrote:
> W dniu 28.08.2016 o 12:51, Kevin Daudt pisze:
>> On Sun, Aug 28, 2016 at 05:58:18PM +0800, ryenus wrote:
>
>>> I wonder if there's an easy to use notation to refer to the current branch?
>>> which is expected be friendly
On Fri, Aug 26, 2016 at 8:12 AM, Hedges Alexander
wrote:
>> On 25 Aug 2016, at 19:45, Stefan Beller wrote:
>> [1] https://github.com/jlehmann/git-submod-enhancements
>> which has some attempts for checkout including the submodules.
>> I also tried
On Fri, Aug 26, 2016 at 11:27 AM, Junio C Hamano wrote:
> Beat Bolli writes:
>
>> @@ -124,7 +124,8 @@ archive, summarize the relevant points of the discussion.
>> If you want to reference a previous commit in the history of a stable
>> branch use the
From: Jacob Keller <jacob.kel...@gmail.com>
> On Fri, Aug 26, 2016 at 1:04 PM, Jeff King <p...@peff.net> wrote:
> > On Fri, Aug 26, 2016 at 07:58:07PM +, Keller, Jacob E wrote:
> >
> >> > > char *git_pathdup_s
On Fri, Aug 26, 2016 at 1:04 PM, Jeff King wrote:
> On Fri, Aug 26, 2016 at 07:58:07PM +, Keller, Jacob E wrote:
>
>> > > char *git_pathdup_submodule(const char *path, const char *fmt,
>> > > ...)
>> > > {
>> > > + int err;
>> > > va_list args;
>> > >
On Thu, Aug 25, 2016 at 1:31 PM, Junio C Hamano wrote:
> tbo...@web.de writes:
>
>> From: Torsten Bögershausen
>>
>> Sorry for posting this so late:
>> While reviewing another patch I realized that the eol related
>> documentation was not updated as it should
On Thu, Aug 25, 2016 at 3:31 PM, Junio C Hamano wrote:
> What is wrong about that? 4*80k = 320kB overhead for length fields
> to transfer 5GB worth of data? I do not think it is worth worrying
> about it.
>
> But I am more surprised by seeing that "why not a single huge
>
From: Jacob Keller <jacob.kel...@gmail.com>
Modify the changes to do_submodule_path so that we properly call
gitmodules_config() before the lookup of submodule_from_path. This may
need to be modified so that we only call it the first time as I'm not
sure what sort of performance hit we'
From: Jacob Keller <jacob.kel...@gmail.com>
Similar to is_null_oid(), and is_empty_blob_sha1() add an
empty_tree_oid along with helper function is_empty_tree_oid(). For
completeness, also add an "is_empty_tree_sha1()",
"is_empty_blob_sha1()", "is_empty_tre
From: Jacob Keller <jacob.kel...@gmail.com>
Teach git-diff and friends a new format for displaying the difference
of a submodule. The new format is an inline diff of the contents of the
submodule between the commit range of the update. This allows the user
to see the actual code change
From: Jacob Keller <jacob.kel...@gmail.com>
A future patch is going to add a new submodule diff format which
displays an inline diff of the submodule changes. To make this easier,
and to ensure that both submodule diff formats use the same initial
header, factor out show_submodule_
From: Jacob Keller <jacob.kel...@gmail.com>
Since we're going to be changing this function in a future patch, lets
go ahead and convert this to use object_id now.
Signed-off-by: Jacob Keller <jacob.kel...@gmail.com>
---
diff.c | 2 +-
submodule.c | 16
subm
From: Jacob Keller <jacob.kel...@gmail.com>
Add an extension to git-diff and git-log (and any other graph-aware
displayable output) such that "--line-prefix=" will print the
additional line-prefix on every line of output.
To make this work, we have to fix a few bugs in the grap
From: Jacob Keller <jacob.kel...@gmail.com>
A future patch will add a new format for displaying the difference of
a submodule. Make it easier by changing how we store the current
selected format. Replace the DIFF_OPT flag with an enumeration, as each
format will be mutually exclusive.
Sign
From: Jacob Keller <jacob.kel...@gmail.com>
Currently, do_submodule_path will attempt locating the .git directory by
using read_gitfile on /.git. If this fails it just assumes the
/.git is actually a git directory.
This is good because it allows for handling submodules which were
From: Junio C Hamano
"diff/log --stat" has a logic that determines the display columns
available for the diffstat part of the output and apportions it for
pathnames and diffstat graph automatically.
5e71a84a (Add output_prefix_length to diff_options, 2012-04-16)
added the
On Thu, Aug 25, 2016 at 3:38 PM, Junio C Hamano <gits...@pobox.com> wrote:
> Jacob Keller <jacob.kel...@gmail.com> writes:
>
>> So we should support the gitlink to a repository stored at
>> without stuff inside the .git/modules, and we should support submo
On Thu, Aug 25, 2016 at 1:46 PM, Stefan Beller <sbel...@google.com> wrote:
> On Thu, Aug 25, 2016 at 1:39 PM, Jacob Keller <jacob.kel...@gmail.com> wrote:
>> On Tue, Aug 23, 2016 at 10:47 AM, Stefan Beller <sbel...@google.com> wrote:
>>> On Tue, Aug 23, 20
On Tue, Aug 23, 2016 at 10:47 AM, Stefan Beller wrote:
> On Tue, Aug 23, 2016 at 10:25 AM, Junio C Hamano wrote:
>> I am not so sure about that. If there is an existing place that is
>> buggy, shouldn't we fix that, instead of spreading the same bug
>>
On Tue, Aug 23, 2016 at 10:25 AM, Junio C Hamano wrote:
> I am not so sure about that. If there is an existing place that is
> buggy, shouldn't we fix that, instead of spreading the same bug
> (assuming that it is a bug in the first place, which I do not have a
> strong
On Wed, Aug 24, 2016 at 3:52 PM, Stefan Beller <sbel...@google.com> wrote:
> On Tue, Aug 23, 2016 at 11:29 PM, Jacob Keller <jacob.kel...@gmail.com> wrote:
>> On Tue, Aug 23, 2016 at 4:03 PM, Stefan Beller <sbel...@google.com> wrote:
>>>>
On Wed, Aug 24, 2016 at 9:22 AM, Junio C Hamano wrote:
> The merge-base is to compute the point you forked your topic from
> the mainline. So if you want to compare your current state in the
> index with the fork point, you'd do
>
> git diff --cached $(git merge-base
On Tue, Aug 23, 2016 at 4:03 PM, Stefan Beller wrote:
>>> +
>>> + if (option_recursive) {
>>> + if (option_required_reference.nr &&
>>> + option_optional_reference.nr)
>>> + die(_("clone --recursive is not compatible
On Tue, Aug 23, 2016 at 4:07 PM, Junio C Hamano <gits...@pobox.com> wrote:
> Jacob Keller <jacob.e.kel...@intel.com> writes:
>
>> From: Jacob Keller <jacob.kel...@gmail.com>
>>
>> A future patch is going to add a new submodule diff format which
>>
On Mon, Aug 15, 2016 at 2:53 PM, Stefan Beller wrote:
> 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
From: Jacob Keller <jacob.kel...@gmail.com>
Change the default behavior of git-format-patch to generate numbered
sequence of 0/1 and 1/1 when generating both a cover-letter and a single
patch. This standardizes the cover letter to have 0/N which helps
distinguish the cover letter from the
On Tue, Aug 23, 2016 at 3:34 PM, Junio C Hamano <gits...@pobox.com> wrote:
> Jacob Keller <jacob.e.kel...@intel.com> writes:
>
>> diff --git a/builtin/log.c b/builtin/log.c
>> index 92dc34dcb0cc..49aa534f4a01 100644
>> --- a/builtin/log.c
>> +++ b/bu
On Mon, Aug 15, 2016 at 2:53 PM, Stefan Beller wrote:
> In the next patch we introduce optional references; To better distinguish
> between optional and required references we rename the variable.
>
Makes sense. It's a bit weird to process "option_required_reference"
but I
On Mon, Aug 15, 2016 at 2:53 PM, Stefan Beller wrote:
> 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.
>
Seems pretty straight
On Mon, Aug 15, 2016 at 2:53 PM, Stefan Beller wrote:
> 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
On Mon, Aug 15, 2016 at 2:53 PM, Stefan Beller wrote:
> + if (!repo && is_directory(mkpath("%s/.git/objects", ref_git))) {
> + char *ref_git_git = mkpathdup("%s/.git", ref_git);
> + free(ref_git);
> + ref_git = ref_git_git;
> +
On Mon, Aug 15, 2016 at 2:53 PM, Stefan Beller wrote:
> 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
On Mon, Aug 15, 2016 at 2:53 PM, Stefan Beller wrote:
> Allow users to pass in multiple references, just as clone accepts multiple
> references as well.
>
Straight forward and reasonable change.
Regards,
Jake
--
To unsubscribe from this list: send the line "unsubscribe git"
On Mon, Aug 15, 2016 at 2:53 PM, Stefan Beller wrote:
> 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
From: Jacob Keller <jacob.kel...@gmail.com>
Change the default behavior of git-format-patch to generate numbered
sequence of 0/1 and 1/1 when generating both a cover-letter and a single
patch. This standardizes the cover letter to have 0/N which helps
distinguish the cover letter from the
501 - 600 of 1094 matches
Mail list logo