On Sun, Apr 24, 2016 at 4:20 PM, Ævar Arnfjörð Bjarmason
wrote:
> Change the documentation so that:
> [...]
> Signed-off-by: Ævar Arnfjörð Bjarmason
> ---
> diff --git a/Documentation/git-init.txt b/Documentation/git-init.txt
> @@ -130,7 +130,11 @@ The
On Sunday, April 24, 2016, wrote:
> The Git Travis CI OSX build always installs the latest versions of Git LFS and
> Perforce via brew and the Linux build installs fixed versions. Consequently
> new
> LFS/Perforce versions can brake the OS X build even if there is no
On 04/24/2016 07:14 PM, Ramsay Jones wrote:
Sparse complains thus:
SP convert.c
convert.c:178:24: warning: Using plain integer as NULL pointer
convert.c:239:28: warning: dubious: !x & y
Signed-off-by: Ramsay Jones
---
Hi Torsten,
When you next
On Mon, Apr 25, 2016 at 12:42 AM, Ramsay Jones
wrote:
>
>
> On 24/04/16 17:56, Christian Couder wrote:
>> On Sun, Apr 24, 2016 at 6:27 PM, Christian Couder
>> wrote:
>>> On Sun, Apr 24, 2016 at 5:23 PM, Ramsay Jones
>>>
Neven Sajko wrote:
> Gmail by default doesn't allow usage through send-email.
> They say that send-email is "less secure" and that enabling it
> makes it easier to break into my account.
>
> Is send-email really less secure than the Gmail web browser
> interface?
Like any
Any ACL you implement via an 'update' hook isn't actual access control
if the user has login access to the machine running git, because they
can trivially just built their own git version which doesn't run the
hook.
Change the documentation to take this dangerous edge case into account,
and
Change the hardcoded lookup for .git/hooks/* to optionally lookup in
$(git config core.hooksPath)/* instead.
This is essentially a more intrusive version of the git-init ability to
specify hooks on init time via init templates.
The difference between that facility and this feature is that this
Gmail by default doesn't allow usage through send-email.
They say that send-email is "less secure" and that enabling it
makes it easier to break into my account.
Is send-email really less secure than the Gmail web browser
interface?
Neven
--
To unsubscribe from this list: send the line
Junio C Hamano wrote:
> Eric Wong writes:
> > + argv_array_push(, "unpack-objects");
> > + argv_array_push(, "-q");
> > +
> > + return run_command();
> Looks good. I haven't thought if "-q" is appropriate or not though.
Oops, I think tying it
On Sun, Apr 24, 2016 at 1:20 PM, Ævar Arnfjörð Bjarmason
wrote:
> Any ACL you implement via an 'update' hook isn't actual access control
> if the user has login access to the machine running git, because they
> can trivially just built their own git version which doesn't run the
Change:
* Sentences that needed "the" or "a" to either add those or change them
so they don't need them.
* The little tangent about "You can use this to do X (if your project
wants to do X)" can just be shortened to "e.g. if you want to do X".
* s/parameter/parameters/ when the plural
Any ACL you implement via an 'update' hook isn't actual access control
if the user has login access to the machine running git, because they
can trivially just built their own git version which doesn't run the
hook.
Change the documentation to take this dangerous edge case into account,
and
Change the documentation so that:
* We don't talk about "little scripts". Hooks can be as big as you
want, and don't have to be scripts, just call them "programs".
* We note what happens with chdir() before a hook is called, nothing
documented this explicitly, but the current behavior is
On Sun, Apr 24, 2016 at 9:58 PM, Matthieu Moy
wrote:
> Ęvar Arnfjörš Bjarmason writes:
>
>> I couldn't find a way to report git-scm.org-specific bugs
>
> You can do so here:
>
> https://github.com/git/git-scm.com/issues
Thanks. I didn't find that,
Ævar Arnfjörð Bjarmason writes:
> I couldn't find a way to report git-scm.org-specific bugs
You can do so here:
https://github.com/git/git-scm.com/issues
--
Matthieu Moy
http://www-verimag.imag.fr/~moy/
--
To unsubscribe from this list: send the line "unsubscribe git" in
Hi,
On 04/15/2016 10:00 PM, Junio C Hamano wrote:
> Stephan Beyer writes:
>
>> test_cmp_rev() took exactly two parameters, the expected revision
>> and the revision to test. This commit generalizes this function
>> such that it takes any number of at least two revisions: the
>>
John Darrington writes:
> Git --send-email poses the question:
>
> "Who should the emails be sent to (if any)?"
>
> Apart from sounding clumsy (not to mention incorrect grammar), it took me a
> while to work out what this meant.
>
> I suggest this be changed to :
I couldn't find a way to report git-scm.org-specific bugs, but I guess
whoever maintains it these days also reads the list.
Here:
https://git-scm.com/docs/git-push#OPTIONS
If you click on the "GIT URLS" link it's broken. If you search for
"urls.txt" in the document you can see that this is
Eric Wong writes:
> +static int loosen_small_pack(const struct packed_git *p)
> +{
> + struct child_process unpack = CHILD_PROCESS_INIT;
> +
> + if (lseek(p->pack_fd, 0, SEEK_SET) < 0)
> + die_errno("Failed seeking to start of '%s'", p->pack_name);
> +
On Sun, Apr 24, 2016 at 8:58 PM, wrote:
> --- a/git-p4.py
> +++ b/git-p4.py
> @@ -1064,8 +1064,15 @@ class GitLFS(LargeFileSystem):
> if pointerProcess.wait():
> os.remove(contentFile)
> die('git-lfs pointer command failed. Did you
Le 22/04/2016 08:41, Michael Haggerty a écrit :
> I hate that we even have to worry about this stuff, but
> graingert/secure-smtplib looks to be GPLv3, whereas git-multimail is
> GPLv2 (like the Git project and Linux); *not* "GPLv2 or later". So if
> "inspired" means "incorporated copyrightable
Ben Woosley writes:
> These know breakages:
>
> ok 50 - rebase -m --onto --root
> ok 54 - rebase -m without --onto --root with disjoint history
>
> Have to do with rebasing a root/orphan branch with the -m flag,
> which defaults to -- merge=recursive, which is the case the
From: Lars Schneider
Git LFS 1.2.0 removed a preamble from the output of the 'git lfs pointer'
command [1] which broke the parsing of this output. Adjust the parser
to support the old and the new format.
Please note that this patch slightly changes the second return
From: Lars Schneider
v1: $gmane/291917
v2: $gmane/291991
diff to v2:
* use regex to parse "oid" instead of a complicated split logic
($gmane/291995, thanks Sebastian)
* add a note to the commit message emphasizing the change from array
to string in the second
From: Lars Schneider
Signed-off-by: Lars Schneider
---
.travis.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index 78e433b..4acf617 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -22,8
From: Lars Schneider
The Git Travis CI OSX build always installs the latest versions of Git LFS and
Perforce via brew and the Linux build installs fixed versions. Consequently new
LFS/Perforce versions can brake the OS X build even if there is no change in
Git.
Le 22/04/2016 08:05, Matthieu Moy a écrit :
> Hi, and thanks for the patch.
Hi.
Thanks for your tool, it is very useful!
> Please, add your sign-off and a proper commit message to your patch,
> see:
Done, I also signed my commit via PGP.
> I'm OK with patches by email, but you may prefer
On 24/04/16 17:56, Christian Couder wrote:
> On Sun, Apr 24, 2016 at 6:27 PM, Christian Couder
> wrote:
>> On Sun, Apr 24, 2016 at 5:23 PM, Ramsay Jones
>> wrote:
>>>
>>>
>>> On 24/04/16 14:33, Christian Couder wrote:
This is a
Sparse complains thus:
SP convert.c
convert.c:178:24: warning: Using plain integer as NULL pointer
convert.c:239:28: warning: dubious: !x & y
Signed-off-by: Ramsay Jones
---
Hi Torsten,
When you next re-roll your 'tb/convert-eol-autocrlf' branch, could
On Sun, Apr 24, 2016 at 6:27 PM, Christian Couder
wrote:
> On Sun, Apr 24, 2016 at 5:23 PM, Ramsay Jones
> wrote:
>>
>>
>> On 24/04/16 14:33, Christian Couder wrote:
>>> This is a patch series about libifying `git apply` functionality, and
On 24 Apr 2016, at 18:37, SZEDER Gábor wrote:
>
> Quoting Lars Schneider :
>
>> On 24 Apr 2016, at 13:50, SZEDER Gábor wrote:
>>
>>> Signed-off-by: SZEDER Gábor
>>> ---
>>>
>>> As far as I can tell after
Quoting Lars Schneider :
On 24 Apr 2016, at 13:50, SZEDER Gábor wrote:
Signed-off-by: SZEDER Gábor
---
As far as I can tell after eyeballing the test script, this was the
only case where the &&-chain was broken.
On 24 Apr 2016, at 13:50, SZEDER Gábor wrote:
> Signed-off-by: SZEDER Gábor
> ---
>
> As far as I can tell after eyeballing the test script, this was the
> only case where the &&-chain was broken.
>
> t/t9824-git-p4-git-lfs.sh | 2 +-
> 1 file changed, 1
On Sun, Apr 24, 2016 at 5:23 PM, Ramsay Jones
wrote:
>
>
> On 24/04/16 14:33, Christian Couder wrote:
>> This is a patch series about libifying `git apply` functionality, and
>> using this libified functionality in `git am`, so that no 'git apply'
>> process is spawn
On 24/04/16 14:33, Christian Couder wrote:
> This is a patch series about libifying `git apply` functionality, and
> using this libified functionality in `git am`, so that no 'git apply'
> process is spawn anymore. This makes `git am` significantly faster, so
> `git rebase`, when it uses the am
From: Torsten Bögershausen
t6038 uses different code, dependig if NATIVE_CRLF is set ot not.
When the native line endings are LF, merge.renormalize is not tested very well.
Change the test to always use CRLF by setting core.eol=crlf.
After doing so, the test fails:
rm
From: Torsten Bögershausen
When the ident attributes is set, get_stream_filter() did not obey
core.autocrlf=true, and the file was checked out with LF.
Change the rule when a streaming filter can be used:
- if an external filter is specified, don't use a stream filter.
- if the
From: Torsten Bögershausen
This patch extends the work done in commit c480539:
"Make it work also for un-normalized repositories". Make sure that CRLF
can be converted round trip, or don't convert them at all.
The old handling would treat a file as unchanged after checkout,
as
From: Torsten Bögershausen
We define the working tree file is clean if either:
* the result of running convert_to_git() on the working tree
contents matches what is in the index (because that would mean
doing another "git add" on the path is a no-op); OR
* the result
From: Torsten Bögershausen
Before this change,
$ echo "* text=auto" >.gitattributes
$ echo "* eol=crlf" >>.gitattributes
would have the same effect as
$ echo "* text" >.gitattributes
$ git config core.eol crlf
Since the 'eol' attribute had higher priority than 'text=auto', this
From: Torsten Bögershausen
When statistics are done for the autocrlf handling, the search in
the content can be stopped, if e.g
- a search for binary is done, and a NUL character is found
- a search for CRLF is done, and the first CRLF is found.
Similar when statistics for binary
From: Torsten Bögershausen
Factor out the retrieval of the sha1 for a given path in
read_blob_data_from_index() into the function get_sha1_from_index().
This will be used in the next commit, when convert.c can do the
analyze for "text=auto" without slurping the whole blob into
From: Torsten Bögershausen
Add more test cases for the not normalized files ("NNO"). The
"text" attribute is most important, use it as the first parameter.
"ident", if set, is the second paramater followed by the eol
attribute. The eol attribute overrides core.autocrlf, which
From: Torsten Bögershausen
Even though the configuration parser errors out when core.autocrlf
is set to 'input' when core.eol is set to 'crlf', there is no need
to do so, because the core.autocrlf setting trumps core.eol.
Allow all combinations of core.crlf and core.eol and
From: Torsten Bögershausen
When the content of a commited file is unchanged and the attributes are changed,
Git may not detect that the next commit must treat the file as changed.
This happens when lstat() doesn't detect a change, since neither inode,
mtime nor size are changed.
Signed-off-by: Christian Couder
---
cache.h | 1 +
environment.c | 5 +
2 files changed, 6 insertions(+)
diff --git a/cache.h b/cache.h
index 2711048..7f36aa3 100644
--- a/cache.h
+++ b/cache.h
@@ -461,6 +461,7 @@ extern int is_inside_work_tree(void);
extern
Signed-off-by: Christian Couder
---
run-command.c | 2 +-
run-command.h | 6 ++
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/run-command.c b/run-command.c
index 8c7115a..29d2bda 100644
--- a/run-command.c
+++ b/run-command.c
@@ -85,7 +85,7 @@ static
Signed-off-by: Christian Couder
---
builtin/apply.c | 31 +--
1 file changed, 17 insertions(+), 14 deletions(-)
diff --git a/builtin/apply.c b/builtin/apply.c
index b6d2343..699cabf 100644
--- a/builtin/apply.c
+++ b/builtin/apply.c
@@ -25,6
Signed-off-by: Christian Couder
---
builtin/apply.c | 11 ++-
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/builtin/apply.c b/builtin/apply.c
index b57be2c..a5dff99 100644
--- a/builtin/apply.c
+++ b/builtin/apply.c
@@ -25,6 +25,7 @@ struct
Signed-off-by: Christian Couder
---
builtin/apply.c | 37 +
1 file changed, 21 insertions(+), 16 deletions(-)
diff --git a/builtin/apply.c b/builtin/apply.c
index a5dff99..ba828df 100644
--- a/builtin/apply.c
+++ b/builtin/apply.c
@@
Signed-off-by: Christian Couder
---
builtin/apply.c | 20 ++--
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/builtin/apply.c b/builtin/apply.c
index 7115dc2..78849e4 100644
--- a/builtin/apply.c
+++ b/builtin/apply.c
@@ -2194,17 +2194,17
Signed-off-by: Christian Couder
---
builtin/apply.c | 46 +++---
1 file changed, 27 insertions(+), 19 deletions(-)
diff --git a/builtin/apply.c b/builtin/apply.c
index 154679e..b57be2c 100644
--- a/builtin/apply.c
+++
The match_fragment() function is very big and contains a big special case
algorithm that does line by line fuzzy matching. So let's extract this
algorithm in a separate line_by_line_fuzzy_match() function.
Signed-off-by: Christian Couder
---
builtin/apply.c | 129
Signed-off-by: Christian Couder
---
builtin/apply.c | 11 ++-
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/builtin/apply.c b/builtin/apply.c
index d90948a..16d78f9 100644
--- a/builtin/apply.c
+++ b/builtin/apply.c
@@ -36,6 +36,9 @@ struct
Signed-off-by: Christian Couder
---
builtin/apply.c | 51 ---
1 file changed, 32 insertions(+), 19 deletions(-)
diff --git a/builtin/apply.c b/builtin/apply.c
index 3f8671c..755e0e3 100644
--- a/builtin/apply.c
+++
Signed-off-by: Christian Couder
---
apply.c | 6 +++---
apply.h | 5 -
2 files changed, 3 insertions(+), 8 deletions(-)
diff --git a/apply.c b/apply.c
index 99b7a2d..86e0d20 100644
--- a/apply.c
+++ b/apply.c
@@ -27,7 +27,7 @@ static void git_apply_config(void)
Signed-off-by: Christian Couder
---
apply.c | 20
1 file changed, 16 insertions(+), 4 deletions(-)
diff --git a/apply.c b/apply.c
index 86e0d20..7cee834 100644
--- a/apply.c
+++ b/apply.c
@@ -4718,8 +4718,11 @@ int apply_all_patches(struct
Signed-off-by: Christian Couder
---
builtin/apply.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/builtin/apply.c b/builtin/apply.c
index c8b9bf0..0717cd2 100644
--- a/builtin/apply.c
+++ b/builtin/apply.c
@@ -70,6 +70,7 @@ struct apply_state
Currently commands that want to use the apply functionality have to launch
a "git apply" process which can be bad for performance.
Let's start libifying the apply functionality and to do that we first need
to get rid of the global variables in "builtin/apply.c".
This patch introduces "struct
Signed-off-by: Christian Couder
---
builtin/apply.c | 9 +
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/builtin/apply.c b/builtin/apply.c
index 506357c..c45e481 100644
--- a/builtin/apply.c
+++ b/builtin/apply.c
@@ -57,6 +57,8 @@ struct
This replaces run_apply() implementation with a new one that
uses the apply api that has been previously prepared in
apply.c and apply.h.
This shoud improve performance a lot in certain cases.
As the previous implementation was creating a new `git apply`
process to apply each patch, it could be
Signed-off-by: Christian Couder
---
builtin/apply.c | 15 ---
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/builtin/apply.c b/builtin/apply.c
index e488879..33a1f8f 100644
--- a/builtin/apply.c
+++ b/builtin/apply.c
@@ -41,6 +41,8 @@ struct
Signed-off-by: Christian Couder
---
builtin/apply.c | 16 +---
1 file changed, 9 insertions(+), 7 deletions(-)
diff --git a/builtin/apply.c b/builtin/apply.c
index ad81210..6c628f6 100644
--- a/builtin/apply.c
+++ b/builtin/apply.c
@@ -25,12 +25,15 @@ struct
Signed-off-by: Christian Couder
---
builtin/apply.c | 23 ++-
1 file changed, 14 insertions(+), 9 deletions(-)
diff --git a/builtin/apply.c b/builtin/apply.c
index ab311c1..c8b9bf0 100644
--- a/builtin/apply.c
+++ b/builtin/apply.c
@@ -68,6 +68,8 @@
Signed-off-by: Christian Couder
---
builtin/apply.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/builtin/apply.c b/builtin/apply.c
index 699cabf..be237d1 100644
--- a/builtin/apply.c
+++ b/builtin/apply.c
@@ -96,7 +96,6 @@ static enum ws_ignore {
Signed-off-by: Christian Couder
---
builtin/apply.c | 38 ++
1 file changed, 30 insertions(+), 8 deletions(-)
diff --git a/builtin/apply.c b/builtin/apply.c
index 49ef4c9..32c38f0 100644
--- a/builtin/apply.c
+++ b/builtin/apply.c
@@
Signed-off-by: Christian Couder
---
builtin/apply.c | 37 -
1 file changed, 20 insertions(+), 17 deletions(-)
diff --git a/builtin/apply.c b/builtin/apply.c
index 7d91454..fa07b33 100644
--- a/builtin/apply.c
+++ b/builtin/apply.c
@@
Signed-off-by: Christian Couder
---
builtin/apply.c | 75 ++---
1 file changed, 40 insertions(+), 35 deletions(-)
diff --git a/builtin/apply.c b/builtin/apply.c
index bb58174..f387340 100644
--- a/builtin/apply.c
+++
Signed-off-by: Christian Couder
---
apply.h | 124
builtin/apply.c | 121 +-
2 files changed, 125 insertions(+), 120 deletions(-)
create mode 100644
Signed-off-by: Christian Couder
---
builtin/apply.c | 36 +---
1 file changed, 21 insertions(+), 15 deletions(-)
diff --git a/builtin/apply.c b/builtin/apply.c
index 32c38f0..5bd5154 100644
--- a/builtin/apply.c
+++ b/builtin/apply.c
@@
Signed-off-by: Christian Couder
---
builtin/apply.c | 23 +--
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/builtin/apply.c b/builtin/apply.c
index eab5ae1..73247c7 100644
--- a/builtin/apply.c
+++ b/builtin/apply.c
@@ -4551,7
Signed-off-by: Christian Couder
---
builtin/apply.c | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/builtin/apply.c b/builtin/apply.c
index 787426f..6c0b153 100644
--- a/builtin/apply.c
+++ b/builtin/apply.c
@@ -4670,10 +4670,10 @@ static int
This will enable further refactoring.
Signed-off-by: Christian Couder
---
builtin/apply.c | 13 ++---
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/builtin/apply.c b/builtin/apply.c
index 9c4f67f..64bc3e9 100644
--- a/builtin/apply.c
+++
Signed-off-by: Christian Couder
---
builtin/apply.c| 17 +
t/t4012-diff-binary.sh | 4 ++--
2 files changed, 15 insertions(+), 6 deletions(-)
diff --git a/builtin/apply.c b/builtin/apply.c
index e1d6c8b..de5c745 100644
--- a/builtin/apply.c
+++
Signed-off-by: Christian Couder
---
builtin/apply.c | 11 ++-
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/builtin/apply.c b/builtin/apply.c
index 268356b..8b7a8e0 100644
--- a/builtin/apply.c
+++ b/builtin/apply.c
@@ -3699,7 +3699,7 @@ static
Signed-off-by: Christian Couder
---
builtin/apply.c | 27 ++-
1 file changed, 14 insertions(+), 13 deletions(-)
diff --git a/builtin/apply.c b/builtin/apply.c
index 209a1b4..9c4f67f 100644
--- a/builtin/apply.c
+++ b/builtin/apply.c
@@ -75,6
Signed-off-by: Christian Couder
---
builtin/apply.c | 49 +
1 file changed, 25 insertions(+), 24 deletions(-)
diff --git a/builtin/apply.c b/builtin/apply.c
index fa07b33..bb58174 100644
--- a/builtin/apply.c
+++
Signed-off-by: Christian Couder
---
builtin/apply.c | 151 +---
1 file changed, 99 insertions(+), 52 deletions(-)
diff --git a/builtin/apply.c b/builtin/apply.c
index 0717cd2..979849c 100644
--- a/builtin/apply.c
+++
Signed-off-by: Christian Couder
---
builtin/apply.c | 21 -
1 file changed, 16 insertions(+), 5 deletions(-)
diff --git a/builtin/apply.c b/builtin/apply.c
index dae89e2..49ef4c9 100644
--- a/builtin/apply.c
+++ b/builtin/apply.c
@@ -4367,6 +4367,12
Signed-off-by: Christian Couder
---
builtin/apply.c | 23 ---
1 file changed, 12 insertions(+), 11 deletions(-)
diff --git a/builtin/apply.c b/builtin/apply.c
index 1c1ac7d..8d96f70 100644
--- a/builtin/apply.c
+++ b/builtin/apply.c
@@ -27,34 +27,34
Signed-off-by: Christian Couder
---
builtin/apply.c | 25 +
1 file changed, 13 insertions(+), 12 deletions(-)
diff --git a/builtin/apply.c b/builtin/apply.c
index e021fad..ebac9ee 100644
--- a/builtin/apply.c
+++ b/builtin/apply.c
@@ -4253,7
Signed-off-by: Christian Couder
---
builtin/apply.c | 52 ++--
1 file changed, 30 insertions(+), 22 deletions(-)
diff --git a/builtin/apply.c b/builtin/apply.c
index 6b8ba2a..268356b 100644
--- a/builtin/apply.c
+++
Signed-off-by: Christian Couder
---
builtin/apply.c | 10 +-
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/builtin/apply.c b/builtin/apply.c
index 259f256..52602af 100644
--- a/builtin/apply.c
+++ b/builtin/apply.c
@@ -79,6 +79,7 @@ struct
Signed-off-by: Christian Couder
---
builtin/apply.c | 41 +++--
1 file changed, 23 insertions(+), 18 deletions(-)
diff --git a/builtin/apply.c b/builtin/apply.c
index 8508607..f2dffa9 100644
--- a/builtin/apply.c
+++ b/builtin/apply.c
This negative number can be -2 if no patch header has been found,
otherwise it is -1.
As parse_chunk() is called only by apply_patch() which already
returns -1 when an error happened, let's make it return -1 when
parse_chunk() returns -1.
Signed-off-by: Christian Couder
Signed-off-by: Christian Couder
---
builtin/apply.c | 50 --
1 file changed, 28 insertions(+), 22 deletions(-)
diff --git a/builtin/apply.c b/builtin/apply.c
index b4c2bd8..8508607 100644
--- a/builtin/apply.c
+++
Signed-off-by: Christian Couder
---
builtin/apply.c | 45 +++--
1 file changed, 23 insertions(+), 22 deletions(-)
diff --git a/builtin/apply.c b/builtin/apply.c
index f387340..b4c2bd8 100644
--- a/builtin/apply.c
+++
Signed-off-by: Christian Couder
---
builtin/apply.c | 16 ++--
1 file changed, 10 insertions(+), 6 deletions(-)
diff --git a/builtin/apply.c b/builtin/apply.c
index 89118c1..5a5be49 100644
--- a/builtin/apply.c
+++ b/builtin/apply.c
@@ -4210,7 +4210,7 @@
To libify `git apply` functionality we have to signal errors
to the caller instead of die()ing.
As a first step in this direction, let's make apply_patch() return
-1 in case of errors instead of dying. For now its only caller
apply_all_patches() will exit(1) when apply_patch() return -1.
In a
As these functions are going to be part of the libified
apply api, let's give them a name that is more specific
to the apply api.
Signed-off-by: Christian Couder
---
builtin/apply.c | 40
1 file changed, 20 insertions(+), 20
Signed-off-by: Christian Couder
---
builtin/apply.c | 8 +---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/builtin/apply.c b/builtin/apply.c
index bc209f5..c0bb24c 100644
--- a/builtin/apply.c
+++ b/builtin/apply.c
@@ -454,10 +454,10 @@ static void
The 'newfd' global is useless now as we can just test
for "lock_file == NULL" instead of "newfd < 0".
Signed-off-by: Christian Couder
---
builtin/apply.c | 6 ++
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/builtin/apply.c b/builtin/apply.c
index
Signed-off-by: Christian Couder
---
builtin/apply.c | 48 +++-
1 file changed, 31 insertions(+), 17 deletions(-)
diff --git a/builtin/apply.c b/builtin/apply.c
index 5a5be49..e021fad 100644
--- a/builtin/apply.c
+++
Signed-off-by: Christian Couder
---
builtin/apply.c | 15 +--
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/builtin/apply.c b/builtin/apply.c
index 73247c7..6b8ba2a 100644
--- a/builtin/apply.c
+++ b/builtin/apply.c
@@ -755,10 +755,10 @@
Signed-off-by: Christian Couder
---
builtin/apply.c | 17 +++--
1 file changed, 11 insertions(+), 6 deletions(-)
diff --git a/builtin/apply.c b/builtin/apply.c
index 69bb94c..89118c1 100644
--- a/builtin/apply.c
+++ b/builtin/apply.c
@@ -4071,17 +4071,18 @@
To be compatible with the rest of the error handling in builtin/apply.c,
find_header() should return -1 instead of calling die().
Unfortunately find_header() already returns -1 when no header is found,
so let's make it return -2 instead in this case.
Signed-off-by: Christian Couder
Signed-off-by: Christian Couder
---
builtin/apply.c | 14 +++---
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/builtin/apply.c b/builtin/apply.c
index 8d96f70..2f89922 100644
--- a/builtin/apply.c
+++ b/builtin/apply.c
@@ -57,20 +57,20 @@ static
Signed-off-by: Christian Couder
---
builtin/apply.c | 128 ++--
1 file changed, 69 insertions(+), 59 deletions(-)
diff --git a/builtin/apply.c b/builtin/apply.c
index 94bf120..787426f 100644
--- a/builtin/apply.c
+++
We cannot have a 'struct lock_file' allocated on the stack, as lockfile.c
keeps a linked list of all created lock_file structures.
So let's make the 'lock_file' variable a pointer to a 'struct lock_file'
and let's alloc the struct when needed.
Signed-off-by: Christian Couder
Signed-off-by: Christian Couder
---
builtin/apply.c | 38 --
1 file changed, 16 insertions(+), 22 deletions(-)
diff --git a/builtin/apply.c b/builtin/apply.c
index ebac9ee..dae89e2 100644
--- a/builtin/apply.c
+++ b/builtin/apply.c
@@
1 - 100 of 137 matches
Mail list logo