git mailing list

FromSubjectsort iconDate
Jörg Sommer
[PATCH] Fix spelling mistake; flagg -> flag
Signed-off-by: Jörg Sommer <joerg@alea.gnuu.de> --- git-am.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/git-am.sh b/git-am.sh index 5f0f241..2ecebc4 100755 --- a/git-am.sh +++ b/git-am.sh @@ -14,7 +14,7 @@ b,binary pass --allo-binary-replacement to git-apply 3,3way allow fall back on 3way merging if needed s,signoff add a Signed-off-by line to the commit message u,utf8 recode into utf8 (default) -k,keep pass -k f...
Feb 2, 7:58 pm 2008
Jörg Sommer
[PATCH] Unify the argument of the parameter -m
In the text, the agument of -m is <master> which should be used in the command synopsis, too. Signed-off-by: Jörg Sommer <joerg@alea.gnuu.de> --- Documentation/git-remote.txt | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Documentation/git-remote.txt b/Documentation/git-remote.txt index 10f6fa5..2cbd1f7 100644 --- a/Documentation/git-remote.txt +++ b/Documentation/git-remote.txt @@ -10,7 +10,7 @@ SYNOPSIS -------- [verse] 'git-remote' -'git-remote...
Feb 2, 7:58 pm 2008
Jörg Sommer
[PATCH] Unify the name of the second option in the text
Signed-off-by: Jörg Sommer <joerg@alea.gnuu.de> --- Documentation/git-push.txt | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Documentation/git-push.txt b/Documentation/git-push.txt index 5f24944..18e0c06 100644 --- a/Documentation/git-push.txt +++ b/Documentation/git-push.txt @@ -53,7 +53,7 @@ side are updated. + `tag <tag>` means the same as `refs/tags/<tag>:refs/tags/<tag>`. + -A parameter <ref> without a colon pushes the <ref&...
Feb 2, 7:58 pm 2008
Junio C Hamano
Re: [PATCH] Documentation/git-reset.txt: Use HEAD~N syntax e...
It's not "it's too late" unless you are proposing to revamp git and to remove support for nonlinear history. With ^ and digits Jari might be thinking that absolute newbies do not do any merges themselves, but even then, people need to know $commit^2 as soon as they start to interact with a history that have any Yeah, I am pretty much for it. HEAD~2 and upwards are very good usability enhancement compared to "HEAD^^^(many uparrows...)". The reason we accept HEAD~1 is not because that is eas...
Feb 2, 5:31 pm 2008
Junio C Hamano
Re: [PATCH 2/2][Perlers?] git-send-email: SIG{TERM,INT} hand...
Now I think this patch (except the part about "stty echo") makes sense, although I did not try killing a send-email session with signals myself. Success stories, people? -
Feb 2, 5:31 pm 2008
Junio C Hamano
Re: [PATCH 1/2][Perlers?] git-send-email: ssh/login style pa...
Another example which appears in PerlFAQ #8 uses ReadKey with its ReadLine, like this: use Term::ReadKey; ReadMode('noecho'); $password = ReadLine(0); which is different from Term::ReadLine's "ReadLine". An earlier example you cited from perlfunc.pod's crypt() entry does: system "stty -echo"; print "Password: "; chomp($word = <STDIN>); print "\n"; system "stty echo"; In either case, I was worried about the interaction between the Term::ReadLine...
Feb 2, 5:31 pm 2008
Jari Aalto
Re: [PATCH] Documentation/git-reset.txt: Use HEAD~N syntax e...
* Sat 2008-02-02 J. Bruce Fields <bfields@fieldses.org> Yeah let's continue as usual. And every time you need to explain the difference, when you could just teach one. The is no doubt that HEAD~N is superior to HEAD^^^^^^^^^^^^^^^^^^^^^^^ Count that. Optimizing keystrokes is hardly ever a brilliant idea from learning perspective. Jari -- Welcome to FOSS revolution: we fix and modify until it shines -
Feb 2, 4:15 pm 2008
Robin Rosenberg
Re: [PATCH] Documentation/git-reset.txt: Use HEAD~N syntax e...
You generally do not type HEAD~largeN, defining large as 3 or more. It's typically one or maybe two ^'s only. When the target is farther away you refer to the SHA-1 (or abbreviated form) tag or branch name instead, just to make sure you point to the right commit. 'HEAD~N' is useful for scripting and testing git itself, it's an advanced feature. UI's that have only one way of accomplishing every task suck. Google this term "the case against user interface consistency" for reasons why, in case ...
Feb 2, 6:39 pm 2008
Jari Aalto
Re: [PATCH] Documentation/git-reset.txt: Use HEAD~N syntax e...
* Sat 2008-02-02 Jakub Narebski <jnareb@gmail.com> I'm afreaid that "optiomization" is seen a virtua in the manual pages. I certainly do not wish to use "shorter", if it would mean "less readable" It's certianly true that the cognitive burder to see foreign construct is higer than, when you can associate a thing to familiar one. Here, he familiarity from other CVSs is term HEAD or TIP, which follows that HEAD~1 in context of other similar ones (HEAD~2, HEAD~2 ...) is self evident...
Feb 2, 4:10 pm 2008
Adam Flott
[RFC] git-gui and spell checking
Shawn, The other day I committed something with a comment that had a rather embarrassing misspelling. I had some more commits on top of that and I was about to dcommit it up to the companies SVN repository before I caught it. I reset the commits to fix it and all was well. But it had me thinking about avoiding the problem in the future and how I handle it in other applications. So far, I think Opera has the best GUI spell checking[1]. I then went and poked around the git-gui code to see how hard...
Feb 2, 2:07 pm 2008
Adam Flott
man pages are littered with .ft C and others
I do remember at one point the man pages looking correctly (just tested v1.5.3.8 and it shows the same problem). Therefore it is probably some package I'm missing on my system. And now, I see this scattered all over: For example: .ft C $ git checkout master \fB(1)\fR $ git checkout master~2 Makefile \fB(2)\fR $ rm -f hello.c $ git checkout hello.c \fB(3)\fR .ft Seems that "------------" and <n>, and a few others aren't bein...
Feb 2, 1:25 pm 2008
Jakub Narebski
Re: man pages are littered with .ft C and others
Or perhaps lack of configuration during build. I have simply build git from original source RPM; this SRPM does not use pre-compiled manpages (as it could), neither uses configure to do autodetection of features (which might have detected and fixed some build configuration needed). Makefile has ASCIIDOC8 (set automatically by configure) I see the same error in manpages, for example in git-diff-tree(1) Example: .ft C :100644 100644 5be4a4...... 000000...... M file.c ...
Feb 2, 2:49 pm 2008
Geert Bosch
Re: man pages are littered with .ft C and others
Yes, I'm seeing this on mac as well. -geert -
Feb 2, 1:46 pm 2008
walt
New behavior for git-branch?
Hi, I've been tracking Junio's git repository for a year or two and I've used git-bisect many times, but yesterday I got very disoriented while using git-bisect and git-branch together. I think I was confused by the output of 'git-branch -v'. As an example of the new behavior of git-branch, here is what I see this morning after pulling from Linus: $git-branch -v * master ae9458d Merge git://git.infradead.org/battery-2.6 origin 8af03e7 Merge branch 'for-2.6.25' of git://git.kernel.org/pub/s...
Feb 2, 12:57 pm 2008
Steffen Prohaska
[PATCH v6] safecrlf: Add mechanism to warn about irreversibl...
Here is the current version of the safecrlf patch. It applies to the post 1.5.4 master and has the following changes since v5: - Uses git config instead of git repo-config. - The tests use test_expect_success. Steffen ---- snip --- CRLF conversion bears a slight chance of corrupting data. autocrlf=true will convert CRLF to LF during commit and LF to CRLF during checkout. A file that contains a mixture of LF and CRLF before the commit cannot be recreated by git. For text files this d...
Feb 2, 12:08 pm 2008
Jari Aalto
Re: [PATCH] Documentation/git-stash.txt: Adjust SYNOPSIS com...
* Sat 2008-02-02 Jakub Narebski <jnareb@gmail.com> We're talking about the same subject. You emphasize the "substitution" aspect, which by nature of the context, is inherently present. If you read your paragraph, you also conclude "required" -- which I emphasised initially. SYNOPSIS dyntax: command option Is inherently same as by spelling it more stronger: command <option> But different from command "option" The reason why I might be inclined to be on for a...
Feb 2, 10:32 am 2008
Jakub Narebski
Re: [PATCH] Documentation/git-stash.txt: Adjust SYNOPSIS com...
No, I would not. The fact that the parameter _requires substitution_ (is placeholder) is orthogonal (independent) of the fact if the parameter is required or optional. Angle brackets (and italic or underline) means "placeholder", while lack of angle brackets (and bold) means "literal". Square brackets means "optional", while lack I would say that in command option the 'option' string is literal, while in command <option> you have to substitute actual option in the p...
Feb 2, 11:25 am 2008
Jari Aalto
[PATCH] Documentation/git-stash.txt: Adjust SYNOPSIS command...
Adjust the command syntax to better reflect the call parameters: [save] [message...] => [save [<message>]]. Signed-off-by: Jari Aalto <jari.aalto AT cante.net> --- > [Jakub Narebski] I think it would beb better if you split this patch > in two, *********************************************************************** This is reworked patch (No. 2) *********************************************************************** Documentation/git-stash.txt | 7 ++++--- 1 fil...
Feb 2, 10:03 am 2008
Jari Aalto
Re: [PATCH] Documentation/git-reset.txt: Use HEAD~N syntax e...
* Sat 2008-02-02 Mike Hommey <mh@glandium.org> gmane.comp.version-control.git I use HEAD~1 always, because I think the consistency in learning the most important factor. It does not matter what advanced users use. The documentation should primarily focus the newcomers. The first question a newbie asks, if manual pages mixes syntaxes: What the heck "^" ?. I just saw HEAD~N, is the other one somehow special? All the other examples refer to HEAD~N Those used to git may...
Feb 2, 8:59 am 2008
J. Bruce Fields
Re: [PATCH] Documentation/git-reset.txt: Use HEAD~N syntax e...
That could have been an argument for disallowing the HEAD^ syntax entirely, but it's too late for that. Even if we eradicated all mention of ^ from the in-tree documentation, it would still show up in lots of out-of-tree documentation and examples. So we have to introduce it to newbies. Fortunately, it isn't that hard. One way we can help them is by continuing to mix the two in examples, so let's continue with the current mixture. --b. -
Feb 2, 12:18 pm 2008
Jakub Narebski
Re: [PATCH] Documentation/git-reset.txt: Use HEAD~N syntax e...
I think that focusing on the fact that "HEAD^1" is peel-like operator, selecting first parent of HEAD, That "HEAD^" is a shortcut for that, and that "HEAD~3" is a shortcut for "HEAD^^^" similarly to how "3 * 2" is a shortcut for "2 + 2 + 2" is better solution. "HEAD~1" and The documentation should cater to both advanced users and newcomers, unless it is specifically targeted towards newcomers like different IMHO the sequence: "HEAD^1" -> "HEAD^", "HEAD^1^1^1" -> "HEAD^^^" ->...
Feb 2, 9:37 am 2008
Tilman Sauerbeck
[BUG?] git log picks up bad commit
Hi, I think I either found a bug in git log, or I'm working with a broken repository. I can reproduce this with current git master. I'm trying to list the last n commits since a given commit on a given branch like this: git log -n N commit.. branch The problem is, if there are less than N commits that match the criteria, git log also prints the very first commit of the repository. I'm operating on a bare repository here. When I actually check out the branch I'm interested in, git log behaves ...
Feb 2, 8:21 am 2008
Marco Costalba
[PATCH 08/11] Use new decompress_all() helper in git
Only in two places is possible to really simplify deflate code with the all_in_one decompress_all() Signed-off-by: Marco Costalba <mcostalba@gmail.com> --- builtin-apply.c | 23 +++++++++-------------- index-pack.c | 30 +++++++----------------------- 2 files changed, 16 insertions(+), 37 deletions(-) diff --git a/builtin-apply.c b/builtin-apply.c index 30d86f2..fa589e6 100644 --- a/builtin-apply.c +++ b/builtin-apply.c @@ -8,6 +8,7 @@ */ #include "cache.h" #include "cach...
Feb 2, 7:35 am 2008
Marco Costalba
[PATCH 09/11] Convert http-push.c and http-walker.c
Conversion for both files is very similar and in both cases I have added a FIXME where I would have added an additional decompress_free() The corresponding deflateEnd() call is not present in the original code, so I left the line commented out. Signed-off-by: Marco Costalba <mcostalba@gmail.com> --- http-push.c | 21 +++++++++------------ http-walker.c | 22 +++++++++------------- 2 files changed, 18 insertions(+), 25 deletions(-) diff --git a/http-push.c b/http-push.c index a7...
Feb 2, 7:35 am 2008
Marco Costalba
[PATCH 10/11] Convert builtin-pack/unpack
In this case decompression helper conversion is quite similar and not too complex, so they go togheter. Also in index-pack.c pass correct arguments to decompress_next_from(). Signed-off-by: Marco Costalba <mcostalba@gmail.com> --- builtin-pack-objects.c | 14 ++++++-------- builtin-unpack-objects.c | 22 +++++++++------------- index-pack.c | 4 +++- 3 files changed, 18 insertions(+), 22 deletions(-) diff --git a/builtin-pack-objects.c b/builtin-pack-objects.c in...
Feb 2, 7:35 am 2008
Marco Costalba
[PATCH 11/11] Convert sha1_file.c to use decompress helpers
This is "The King". It is the most difficult file to convert and some decompression functions have been created just for it. Anyhow the lines of code removed (45) far surpass the ones added (26). Signed-off-by: Marco Costalba <mcostalba@gmail.com> --- sha1_file.c | 71 +++++++++++++++++++++------------------------------------- 1 files changed, 26 insertions(+), 45 deletions(-) diff --git a/sha1_file.c b/sha1_file.c index f48ad04..6500871 100644 --- a/sha1_file.c +++ b/sha1_file....
Feb 2, 7:35 am 2008
Marco Costalba
[PATCH 01/11] Introduce stream compress helpers
When decompressing a zlib stream use this helpers instead of calling low level zlib function. This patch introduces the necessary framework, still no code change. This is the first step in generalizing compress and decompress functions avoiding zlib directly calls. Signed-off-by: Marco Costalba <mcostalba@gmail.com> --- Makefile | 4 ++-- compress.c | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ compress.h | 12 ++++++++++++ 3 files changed, 72 insertions(...
Feb 2, 7:35 am 2008
Marco Costalba
[PATCH 02/11] Use new compress helpers in git files
These are the 'easy' ones, where a signgle step compression is requested so that we can use only one call to compress_all() Signed-off-by: Marco Costalba <mcostalba@gmail.com> --- archive-zip.c | 28 +++------------------------- builtin-pack-objects.c | 19 +++---------------- diff.c | 22 +++++----------------- index-pack.c | 20 +++----------------- 4 files changed, 14 insertions(+), 75 deletions(-) diff --git a/archive-zip.c b/archive-zip.c ...
Feb 2, 7:35 am 2008
Marco Costalba
[PATCH 03/11] Use new compress helpers in fast-import
Here is slightly more difficult, in particular a xrealloc() has been substituted with a free() + xmalloc() to keep the code simple. Signed-off-by: Marco Costalba <mcostalba@gmail.com> --- fast-import.c | 45 +++++++++++++++------------------------------ 1 files changed, 15 insertions(+), 30 deletions(-) diff --git a/fast-import.c b/fast-import.c index a523b17..b6bb84c 100644 --- a/fast-import.c +++ b/fast-import.c @@ -141,6 +141,7 @@ Format of STDIN stream: #include "builtin.h" ...
Feb 2, 7:35 am 2008
Marco Costalba
[PATCH 04/11] Use new compress helpers in http-push.c
A multistep compress is required here, so we need the full arsenal of compress helpers. Signed-off-by: Marco Costalba <mcostalba@gmail.com> --- http-push.c | 22 ++++++++-------------- 1 files changed, 8 insertions(+), 14 deletions(-) diff --git a/http-push.c b/http-push.c index b2b410d..a7997ec 100644 --- a/http-push.c +++ b/http-push.c @@ -1,5 +1,6 @@ #include "cache.h" #include "commit.h" +#include "compress.h" #include "pack.h" #include "tag.h" #include "blob.h" @@ -49...
Feb 2, 7:35 am 2008
Marco Costalba
[PATCH 05/11] Use new compress helpers in sha1_file.c
A multistep compress is required here, so we need the full arsenal of compress helpers. Signed-off-by: Marco Costalba <mcostalba@gmail.com> --- sha1_file.c | 41 ++++++++++++----------------------------- 1 files changed, 12 insertions(+), 29 deletions(-) diff --git a/sha1_file.c b/sha1_file.c index 66a4e00..f48ad04 100644 --- a/sha1_file.c +++ b/sha1_file.c @@ -7,6 +7,7 @@ * creation etc. */ #include "cache.h" +#include "compress.h" #include "delta.h" #include "pack.h" ...
Feb 2, 7:35 am 2008
Marco Costalba
[PATCH 06/11] Better error handling in compress_all()
Also let the caller to xmalloc() the buffer int compress_start() Signed-off-by: Marco Costalba <mcostalba@gmail.com> --- compress.c | 19 +++++++++---------- 1 files changed, 9 insertions(+), 10 deletions(-) diff --git a/compress.c b/compress.c index f6986c3..0d0b9d9 100644 --- a/compress.c +++ b/compress.c @@ -12,7 +12,7 @@ int compress_start(z_stream *stream, unsigned char *in, unsigned long in_size, unsigned char *out, unsigned long out_siz...
Feb 2, 7:35 am 2008
Marco Costalba
[PATCH 07/11] Introduce stream decompress helpers
Decompressing turns out to be more difficult then comrpessing. Helpers are more because more are the way zlib deflate() is used in git. This patch just introduces the helpers, still no code change. Signed-off-by: Marco Costalba <mcostalba@gmail.com> --- compress.c | 81 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ compress.h | 17 ++++++++++++- 2 files changed, 97 insertions(+), 1 deletions(-) diff --git a/compress.c b/compress.c index 0d0b9d9..cf9d5ca 100644 ...
Feb 2, 7:35 am 2008
Stefan (metze) Metzm...
Strange behavior with git rebase (-i)
Hi, I just hit a really strange thing: I was on a branch called 'v4-0-test', then I did a git rebase -i orgin/v4-0-test and removed some patches and prefixed all others with 'edit'. Then: git commit --amend git rebase --continue git commit --amend git rebase --continue git commit --amend git commit --amend (again) git branch * v4-0-test git log (this showed what I wanted) git show -p --stat (to really make sure that the top revision is the one I want) git push origin v4-0-test ...
Feb 2, 6:44 am 2008
Johannes Schindelin
Re: Strange behavior with git rebase (-i)
Hi, I don't believe it. "git branch" would have shown "* (no branch)" as current branch, unless the rebase is finalized. git rebase -i works on a _detached_ HEAD, for two reasons: - easier working with reflogs (as the branch's reflog shows before rebase and after rebase, but nothing in between), and - to prevent exactly the scenario you are describing. Ciao, Dscho -
Feb 2, 11:42 am 2008
Steven Walter
Re: Strange behavior with git rebase (-i)
Did rebase -i in git 1.5.3.2 use a detached head? I thought that was new in 1.5.4. -- -Steven Walter <stevenrwalter@gmail.com> Freedom is the freedom to say that 2 + 2 = 4 B2F1 0ECC E605 7321 E818 7A65 FC81 9777 DC28 9E8F -
Feb 2, 12:25 pm 2008
Johannes Schindelin
Re: Strange behavior with git rebase (-i)
Hi, rebase -i uses a detached HEAD since it was merged. In 1.5.4, rebase (note the absence of -i) uses a detached HEAD, too. Ciao, Dscho -
Feb 2, 1:08 pm 2008
Marco Costalba
[PATCH RESEND] Avoid a useless prefix lookup in strbuf_expan...
Currently the --prett=format prefix is looked up in a tight loop in strbuf_expand(), if prefix is found is then used as argument for format_commit_item() that does another search by a switch statement to select the proper operation. Because the switch statement is already able to discard unknown matches we don't need the prefix lookup before to call format_commit_item() This patch removes an useless loop in a very fast path, used by, as example, by 'git log' with --pretty=format option Signed...
Feb 2, 7:09 am 2008
Junio C Hamano
[PATCH 11/13] builtin-apply.c: pass ws_rule down to match_fr...
This is necessary to allow match_fragment() to attempt a match with a preimage that is based on a version before whitespace errors were fixed. Signed-off-by: Junio C Hamano <gitster@pobox.com> --- builtin-apply.c | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/builtin-apply.c b/builtin-apply.c index 2af625a..5f3c047 100644 --- a/builtin-apply.c +++ b/builtin-apply.c @@ -1614,6 +1614,7 @@ static int match_fragment(struct image *img, struct image *po...
Feb 2, 6:54 am 2008
Junio C Hamano
[PATCH 12/13] git-apply --whitespace=fix: fix whitespace fuz...
When you have more than one patch series, an earlier one of which tries to introduce whitespace breakages and a later one of which has such a new line in its context, "git-apply --whitespace=fix" will apply and fix the whitespace breakages in the earlier one, making the resulting file not to match the context of the later patch. A short demonstration is in the new test, t4125. For example, suppose the first patch is: diff a/hello.txt b/hello.txt --- a/hello.txt +++ b/hello.txt ...
Feb 2, 6:54 am 2008
Junio C Hamano
[PATCH 13/13] core.whitespace: cr-at-eol
This new error mode allows a line to have a carriage return at the end of the line when checking and fixing trailing whitespace errors. Some people like to keep CRLF line ending recorded in the repository, and still want to take advantage of the automated trailing whitespace stripping. We still show ^M in the diff output piped to "less" to remind them that they do have the CR at the end, but these carriage return characters at the end are no longer flagged as errors. Signed-off-by: Junio C Haman...
Feb 2, 6:54 am 2008
Junio C Hamano
[PATCH 08/13] builtin-apply.c: simplify calling site to appl...
The function apply_line() changed its behaviour depending on the ws_error_action, whitespace_error and if the input was a context. Make its caller responsible for such checking so that we can convert the function to copy the contents of line while fixing whitespace breakage more easily. Signed-off-by: Junio C Hamano <gitster@pobox.com> --- builtin-apply.c | 38 ++++++++++++++++++++------------------ 1 files changed, 20 insertions(+), 18 deletions(-) diff --git a/builtin-apply.c b/built...
Feb 2, 6:54 am 2008
Junio C Hamano
[PATCH 09/13] builtin-apply.c: do not feed copy_wsfix() lead...
The "patch" parameter used to include leading '+' of an added line in the patch, and the array was treated as 1-based. Make it accept the contents of the line alone and simplify the code. Signed-off-by: Junio C Hamano <gitster@pobox.com> --- builtin-apply.c | 38 ++++++++++++++++++-------------------- 1 files changed, 18 insertions(+), 20 deletions(-) diff --git a/builtin-apply.c b/builtin-apply.c index d0d008f..0bc33bd 100644 --- a/builtin-apply.c +++ b/builtin-apply.c @@ -1646,16 ...
Feb 2, 6:54 am 2008
Junio C Hamano
[PATCH 10/13] builtin-apply.c: move copy_wsfix() function a ...
I'll be calling this from match_fragment() in later rounds. Signed-off-by: Junio C Hamano <gitster@pobox.com> --- builtin-apply.c | 188 +++++++++++++++++++++++++++--------------------------- 1 files changed, 94 insertions(+), 94 deletions(-) diff --git a/builtin-apply.c b/builtin-apply.c index 0bc33bd..2af625a 100644 --- a/builtin-apply.c +++ b/builtin-apply.c @@ -1515,6 +1515,100 @@ static int read_old_data(struct stat *st, const char *path, struct strbuf *buf) } } +static in...
Feb 2, 6:54 am 2008
Junio C Hamano
[PATCH 05/13] builtin-apply.c: optimize match_beginning/end ...
Wnen the caller knows the hunk needs to match at the beginning or at the end, there is no point starting from the line number that is found in the patch and trying match with increasing offset. The logic to find matching lines was made more line oriented with the previous patch and this optimization is now trivial. Signed-off-by: Junio C Hamano <gitster@pobox.com> --- builtin-apply.c | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/builtin-apply.c b/bui...
Feb 2, 6:54 am 2008
Junio C Hamano
[PATCH 06/13] builtin-apply.c: mark common context lines in ...
This updates the way preimage and postimage in a patch hunk is parsed and prepared for applying. By looking at image->line[n].flag, the code can tell if it is a common context line that is the same between the preimage and the postimage. This matters when we actually start applying a patch with contexts that have whitespace breakages that have already been fixed in the target file. --- builtin-apply.c | 57 ++++++++++++++++++++++++++++++------------------------ 1 files changed, 32 insertio...
Feb 2, 6:54 am 2008
Junio C Hamano
[PATCH 07/13] builtin-apply.c: clean-up apply_one_fragment()
We had two pointer variables pointing to the same buffer and an integer variable used to index into its tail part that was active (old, oldlines and oldsize for the preimage, and their 'new' counterparts for the postimage). To help readability, use 'oldlines' as the allocated pointer, and use 'old' as the pointer to the tail that advances while the code builds up the contents in the buffer. The size 'oldsize' can be computed as (old-oldines). Signed-off-by: Junio C Hamano <gitster@pobox.com&...
Feb 2, 6:54 am 2008
Junio C Hamano
[PATCH/RFC 00/13] git-apply --whitespace=fix updates
This mini-series teaches "git-apply --whitespace=fix" to cope better with the whitespace changes it introduces to the context. [PATCH 01/13] builtin-apply.c: refactor small part that matches context [PATCH 02/13] builtin-apply.c: restructure "offset" matching [PATCH 03/13] builtin-apply.c: push match-beginning/end logic down These three are preparatory clean-ups to isolate the parts the later patches need to update. [PATCH 04/13] builtin-apply.c: make it more line oriented [PATCH 05/13] builti...
Feb 2, 6:54 am 2008
Junio C Hamano
[PATCH 01/13] builtin-apply.c: refactor small part that matc...
This moves three "if" conditions out of line from find_offset() function, which is responsible for finding the matching place in the preimage to apply the patch. There is no change in the logic of the program. Signed-off-by: Junio C Hamano <gitster@pobox.com> --- builtin-apply.c | 18 +++++++++++++----- 1 files changed, 13 insertions(+), 5 deletions(-) diff --git a/builtin-apply.c b/builtin-apply.c index 15432b6..2c052f8 100644 --- a/builtin-apply.c +++ b/builtin-apply.c @@ -1437,6...
Feb 2, 6:54 am 2008
Junio C Hamano
[PATCH 02/13] builtin-apply.c: restructure "offset" matching
This restructures code to find matching location with offset in find_offset() function, so that there is need for only one call site of match_fragment() function. There still isn't a change in the logic of the program. Signed-off-by: Junio C Hamano <gitster@pobox.com> --- builtin-apply.c | 49 +++++++++++++++++++++++++------------------------ 1 files changed, 25 insertions(+), 24 deletions(-) diff --git a/builtin-apply.c b/builtin-apply.c index 2c052f8..0a304ab 100644 --- a/builtin-a...
Feb 2, 6:54 am 2008
previous daytodaynext day
February 1, 2008February 2, 2008February 3, 2008