Re: [PATCH v4 00/17] New sparse-checkout builtin and "cone" mode

2019-10-17 Thread Jon Simons
sites that could be converted to `xfopen` to die gracefully upon error, and one unchecked `fdopen` that can likewise be `xfdopen`. -Jon

Re: [PATCH v2 1/2] list-objects-filter: only parse sparse OID when 'have_git_dir'

2019-08-29 Thread Jon Simons
On 8/29/19 4:48 PM, Eric Sunshine wrote: On Thu, Aug 29, 2019 at 7:12 PM Jon Simons wrote: On 8/29/19 3:45 PM, Eric Sunshine wrote: On Thu, Aug 29, 2019 at 6:38 PM Jon Simons wrote: + test_write_lines /* >sparse-src/all-files && Hmm, does this work correctly? I would

[PATCH v3 2/2] list-objects-filter: handle unresolved sparse filter OID

2019-08-29 Thread Jon Simons
n earlier failure to resolve it, and when an OID resolves but parsing the sparse filter spec fails. t5616 is updated to demonstrate the change. Co-authored-by: Jeff King Signed-off-by: Jeff King Signed-off-by: Jon Simons --- list-objects-filter.c| 6 +- t/t5616-partial-clone.sh | 7

[PATCH v3 1/2] list-objects-filter: only parse sparse OID when 'have_git_dir'

2019-08-29 Thread Jon Simons
s a future direction. t5616 is updated to demonstrate the change. Signed-off-by: Jon Simons --- list-objects-filter-options.c | 3 ++- t/t5616-partial-clone.sh | 21 + 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/list-objects-filter-options.c b/list-obje

[PATCH v3 0/2] partial-clone: fix two issues with sparse filter handling

2019-08-29 Thread Jon Simons
Included here are two fixes for partial cloning with sparse filters. These issues were uncovered in early testing internally at GitHub, where Taylor and Peff have provided early offlist review feedback. This third revision includes a fix for a test bug introduced in the second revision. Jon

Re: [PATCH v2 1/2] list-objects-filter: only parse sparse OID when 'have_git_dir'

2019-08-29 Thread Jon Simons
On 8/29/19 3:45 PM, Eric Sunshine wrote: On Thu, Aug 29, 2019 at 6:38 PM Jon Simons wrote: Fix a bug in partial cloning with sparse filters by ensuring to check for 'have_git_dir' before attempting to resolve the sparse filter OID. [...] Signed-off-by: Jon Simons --- diff --git

[PATCH v2 2/2] list-objects-filter: handle unresolved sparse filter OID

2019-08-29 Thread Jon Simons
n earlier failure to resolve it, and when an OID resolves but parsing the sparse filter spec fails. t5616 is updated to demonstrate the change. Co-authored-by: Jeff King Signed-off-by: Jeff King Signed-off-by: Jon Simons --- list-objects-filter.c| 6 +- t/t5616-partial-clone.sh | 7

[PATCH v2 0/2] partial-clone: fix two issues with sparse filter handling

2019-08-29 Thread Jon Simons
f the test details: fixes, whitespace adjustment, and some further simplifications -- thanks! Jon Simons (2): list-objects-filter: only parse sparse OID when 'have_git_dir' list-objects-filter: handle unresolved sparse filter OID list-objects-filter-options.c | 3 ++- list-objects-f

[PATCH v2 1/2] list-objects-filter: only parse sparse OID when 'have_git_dir'

2019-08-29 Thread Jon Simons
s a future direction. t5616 is updated to demonstrate the change. Signed-off-by: Jon Simons --- list-objects-filter-options.c | 3 ++- t/t5616-partial-clone.sh | 21 + 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/list-objects-filter-options.c b/list-obje

[PATCH 0/2] partial-clone: fix two issues with sparse filter handling

2019-08-28 Thread Jon Simons
Included here are two fixes for partial cloning with sparse filters. These issues were uncovered in early testing internally at GitHub, where Taylor and Peff have provided early offlist review feedback. Jon Simons (2): list-objects-filter: only parse sparse OID when 'have_git_dir&#x

[PATCH 1/2] list-objects-filter: only parse sparse OID when 'have_git_dir'

2019-08-28 Thread Jon Simons
s a future direction. t5616 is updated to demonstrate the change. Signed-off-by: Jon Simons --- list-objects-filter-options.c | 3 ++- t/t5616-partial-clone.sh | 23 +++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/list-objects-filter-options.c b/list-obje

[PATCH 2/2] list-objects-filter: handle unresolved sparse filter OID

2019-08-28 Thread Jon Simons
n earlier failure to resolve it, and when an OID resolves but parsing the sparse filter spec fails. t5616 is updated to demonstrate the change. Co-authored-by: Jeff King Signed-off-by: Jeff King Signed-off-by: Jon Simons --- list-objects-filter.c| 6 +- t/t5616-partial-clone.sh | 7

Official request

2019-08-24 Thread Jon
<<< No Message Collected >>>

Re: Announcing Pro Git Second Edition Reedited

2018-12-11 Thread Jon Forrest
tive book's version. I agree, and I don't know what to do about that. Jon

Re: Announcing Pro Git Second Edition Reedited

2018-12-11 Thread Jon Forrest
ly in the early chapters, I suggest giving my version a try. Since I'm giving away my version, you have nothing to loose except perhaps a little time. If I'm right, and my version is clearer, then you could benefit from it. (You're a git expert so I doubt you need my version). Cordially, Jon Forrest

Re: Announcing Pro Git Second Edition Reedited

2018-12-11 Thread Jon Forrest
anges I've made, it's unlikely that my changes would be accepted. I do track the changes to the second edition of Pro Git and incorporate that ones that still apply into my version. But I hear what you're saying. Maybe if and when the third edition of Pro Git comes out I'll tr

Announcing Pro Git Second Edition Reedited

2018-12-09 Thread Jon Forrest
wrote. I hope you enjoy it. The PDF of my version is at https://drive.google.com/file/d/18wGebSU0dyYU1L_bfyoDQtZRF1Vo1H3p/view?usp=sharing If there's enough interest, I'll try to put up an HTML version of the book. Cordially, Jon Forrest

[PATCH 1/2] correct error messages for NULL packet_read_line()

2018-02-08 Thread Jon Simons
From: Jeff King The packet_read_line() function dies if it gets an unexpected EOF. It only returns NULL if we get a flush packet (or technically, a zero-length "0004" packet, but nobody is supposed to send those, and they are indistinguishable from a flush in this interface). Let's correct error

[PATCH 2/2] always check for NULL return from packet_read_line()

2018-02-08 Thread Jon Simons
error rather than segfault. Signed-off-by: Jon Simons --- remote-curl.c | 2 ++ send-pack.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/remote-curl.c b/remote-curl.c index 0053b09..9903077 100644 --- a/remote-curl.c +++ b/remote-curl.c @@ -339,6 +339,8 @@ static struct discovery

[PATCH 0/2] Fix NULL checks for some packet_read_line call sites

2018-02-08 Thread Jon Simons
Included here are a couple of fixes and cleanups for handling NULL return values from 'packet_read_line'. Jeff King (1): correct error messages for NULL packet_read_line() Jon Simons (1): always check for NULL return from packet_read_line() builtin/archive.c | 2 +- fetch-pack.

Re: [RFC] should these two topics graduate to 'master' soon?

2017-03-29 Thread Jon Loeliger
So, like, Junio C Hamano said: > There are two topics that are marked as "Will cook in 'next'" for > practically forever in the "What's cooking" reports. The world may > have become ready for one or both of them, in which case we should > do the merge not too late in the cycle. > > * jc/merge-dro

Re: [PATCH] t2027: avoid using pipes

2017-03-08 Thread Jon Loeliger
So, like, Prathamesh Chavan said: > The exit code of the upstream of a pipe is ignored thus we should avoid > using it. By writing out the output of the git command to a file, we > can test the exit codes of both the commands. > > Signed-off-by: Prathamesh > --- > t/t2027-worktree-list.sh | 14 +

Re: url..insteadOf vs. submodules

2017-02-22 Thread Jon Loeliger
So, like, Junio C Hamano said: > Stefan Beller writes: > > > Do we want to invent a special value for url.*.insteadOf to mean > > "look up in superproject, so I don't have to keep > > a copy that may get stale" ? > > My gut feeling is that we should do the selective/filtered include > Peff m

Re: Fetch/push lets a malicious server steal the targets of "have" lines

2016-10-29 Thread Jon Loeliger
So, like, Junio C Hamano said: > Matt McCutchen writes: > > > Then the server generates a commit X3 that lists Y2 as a parent, even > > though it doesn't have Y2, and advances 'x' to X3. The victim fetches > > 'x': > > > >victim server > > > > Y1---Y2---

Re: Git Miniconference at Plumbers

2016-09-12 Thread Jon Loeliger
So, like, David Bainbridge said: > Hi, > > The subject matter of the conference looks really interesting but I am > unlikely to be able to attend, unfortunately. > > The subjects being covered like the current State of Git and the > Future of Git, for example, deserve much wider exposure, and I w

Re: Git Miniconference at Plumbers

2016-09-12 Thread Jon Loeliger
So, like, Jeff King said: > On Tue, Sep 06, 2016 at 12:42:04PM -0500, Jon Loeliger wrote: > > > I have recently been enlisted by folks at the Linux Foundation to > > help run a Miniconference on Git at the Plumbers Conference [*] > > this fall. > > I see the confer

Git Miniconference at Plumbers

2016-09-06 Thread Jon Loeliger
Folks, I have recently been enlisted by folks at the Linux Foundation to help run a Miniconference on Git at the Plumbers Conference [*] this fall. We currently have both Junio Hamano and Josh Triplett signed up to do talks. Hopefully, though not confirmed yet, Junio will give us a brief "State

Re: [ANN] Pro Git Reedited 2nd Edition

2016-08-12 Thread Jon Forrest
t, is to keep the same coverage as upstream. If they add something about Gitolite to their next edition, then I will also. Cordially, Jon Forrest -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [ANN] Pro Git Reedited 2nd Edition

2016-07-26 Thread Jon Forrest
hanks for the report. I guess for now the best thing to do is to use the HTML version. Jon -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [RFC] A Change to Commit IDs Too Ridiculous to Consider?

2016-07-24 Thread Jon Forrest
in different commit IDs each time. Case closed. Thanks, Jakub! Jon Forrest -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [ANN] Pro Git Reedited 2nd Edition

2016-07-24 Thread Jon Forrest
hallucinating, this will be a great way to update both the pdf and the HTML versions as they change in the future. Jon -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [RFC] A Change to Commit IDs Too Ridiculous to Consider?

2016-07-24 Thread Jon Forrest
ases do you want/need the commit ids to be equal? Can you be more specific? Sure. Take a look at the 2nd or 3rd chapter of Pro Git Reedited, 2nd Edition (or just Pro Git 2nd Edition - it doesn't matter). You see lots of output showing 'git commit' commands and the commit IDs th

Re: [RFC] A Change to Commit IDs Too Ridiculous to Consider?

2016-07-24 Thread Jon Forrest
of Git for little benefit (see the beginning of reply for alternate solutions). Even using your environment variable solution that wouldn't require any code changes? Jon -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.

Re: [ANN] Pro Git Reedited 2nd Edition

2016-07-24 Thread Jon Forrest
ges there (like the one I posted as demo: https://github.com/nobozo/progit2/commit/43ae203c2ccf1a017153de1b41a8c47eb166dba1#commitcomment-18372006 That would be great. I think I'm setup for that now in my GitHub repo for that book. Jon -- To unsubscribe from this list: send the line "unsu

[RFC] A Change to Commit IDs Too Ridiculous to Consider?

2016-07-24 Thread Jon Forrest
r instructional purposes only, and only when the committer explicitly chooses to use this option. I'm *not* proposing a general change to Git's behavior. Is such a thing to ridiculous to even consider? Is there a better way to achieve the same result? Jon Forrest -- To unsubscribe

Re: [ANN] Pro Git Reedited 2nd Edition

2016-07-24 Thread Jon Forrest
ary of those changes? There are too many to summarize. Some are of the type that the proofreader should have caught, and others are my attempt to clarify things. Since I don't claim to be a Git expert it remains to be seen how successful I am. Jon -- To unsubscribe from this list: send the

[ANN] Pro Git Reedited 2nd Edition

2016-07-23 Thread Jon Forrest
hhMm8 The complete self-contained HTML is at: https://drive.google.com/file/d/0B-Llso12P94-U3g1aDBRWjk1Sk0 The sources for this book are at: https://github.com/nobozo/progit2 I welcome comments. Jon Forrest -- To unsubscribe from this list: send the line "unsubscribe git" in the body

Re: Odd Difference Between Windows Git and Standard Git

2016-05-23 Thread Jon Forrest
when the same repo is shared by both Windows and *nix Git users over Dropbox or a shared filesystem? Jon Forrest -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: Odd Difference Between Windows Git and Standard Git

2016-05-20 Thread Jon Forrest
Windows. Thanks for the quick (and correct) response. Jon Forrest -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: Odd Difference Between Windows Git and Standard Git

2016-05-20 Thread Jon Forrest
On 5/20/2016 6:19 AM, Torsten Bögershausen wrote: On 20.05.16 03:48, Jon Forrest wrote: I'm running Git version 2.8.2 built from source on Ubuntu 16.04. I'm using a repository that's stored on Dropbox. I'm the only person accessing this repo. Everything works great. For

Odd Difference Between Windows Git and Standard Git

2016-05-19 Thread Jon Forrest
epo to a non-Dropbox location, just in case it was Dropbox that was causing the problem, but this didn't make any difference. (If you want to try this yourself, try it on the ProGit2 book source on Github). Thanks, Jon Forrest -- To unsubscribe from this list: send the line "unsubscr

git svn clones flawlessly on Windows, crashes silently on OS X - status of externals support?

2016-02-29 Thread Jon Blackburn
Hello, tl;dr: Can I get Git/SVN working on my MacBook if there are external references in the repository? If not, are there alternatives that I can leverage? I'm trying to use git svn to clone a repository that contains externals. On my Windows7 machine it works perfectly. On my Mac (running OSX

Re: Workflow on git with 2 branch with specifc code

2014-01-17 Thread Jon Seymour
nch onto the tip of master branch and then repeat the cycle again. There is some risk of history loss with this approach - a later release of the client branch may not be a direct descendent of an earlier release of the client branch, but even this problem can be solved with judicious use of merg

[ANN] Pro Git Reedited - a New Version of the Pro Git Book

2013-12-02 Thread Jon Forrest
https://www.dropbox.com/s/4awq55350ef235m/progitreedited.en.pdf and the source code is at https://github.com/nobozo/progitreedited I welcome your feedback. Please send any comments to me at nob...@gmail.com. To make sure I recognize them as comments about this book, please include [PGR] in the subject. Jon Forres

Re: git-svn troubles with calendarserver SVN repo

2013-12-01 Thread Jon Seymour
My experience is that the fetch will be atomic - it either fetches an SVN commit or it doesn't. Failure during dcommit is more painful and I usually find it is necessary to manually use a git rebase to rebase the commits that didn't make it to SVN on top of the commits that did. jo

Re: git-svn troubles with calendarserver SVN repo

2013-11-30 Thread Jon Seymour
I have seen this behaviour, though never determined the root cause .Probably the simplest thing you can do without access to the server is to put your git svn fetch into a bash while loop, like so: while ! git svn fetch; do :; done; jon On Sat, Nov 30, 2013 at 10:14 AM, Matěj Cepl wrote: >

Re: Git merge: conflict is expected, but not detected

2013-11-30 Thread Jon Seymour
>From the perspective of topic there had been no change to the definition of bar(), hence there was no change to contribute to the eventual merge with master. One way to avoid this kind of problem is to avoid making (or cherry-picking) the same change on different branches, but instead use a merge

Re: [PATCH 12/13] Remove irrelevant reference from "Tying it all together"

2013-08-26 Thread Jon Loeliger
> Thomas Ackermann writes: > > > Sorry Jon, but this might not be of any help to new Git users ;) > > > > Signed-off-by: Thomas Ackermann > > Yeah, I think this is long overdue. The drawing was taken from an > e-mail posted in a discussion, and the credi

Re: [PATCH] Remove dead link

2013-08-23 Thread Jon Loeliger
g oddly self-referential about this quip being removed from the document. Perhaps we should notify the Boy from "Paradise By The Dashboard Light" that he can rest easily now without the Girl as it seems the end of time has come at last. Acked-by: Jon Loeliger jdl -- To

Re: Unexpected merge results in git-svn repo

2013-07-31 Thread Jon Seymour
oblem that sometimes occurs when git-svn pulls merges back from SVN. jon. On Wed, Jul 31, 2013 at 8:14 PM, Jon Seymour wrote: > I am getting some unexpected results from a merge and I'd like to > understand why. > > I have two commits X and Y that I want to merge. > > git merge-b

Unexpected merge results in git-svn repo

2013-07-31 Thread Jon Seymour
repo that does have some 4+ parent merges in it. jon. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: Recovering from a loss of sync between git and svn

2013-03-17 Thread Jon Seymour
Ah, answering my own question I can see git svn reset does exactly what I need. jon. On Mon, Mar 18, 2013 at 4:03 PM, Jon Seymour wrote: > G'day, > > I managed to lose sync between the git-svn repo that I am using to > track an svn repo. In particular, the git-svn repo lo

Re: Stopping git-svn pulling a particular branch

2012-09-28 Thread Jon Seymour
On Fri, Sep 28, 2012 at 2:58 PM, Jon Seymour wrote: > G'day > > An svn developer created a branch from a subdirectory of the trunk > rather than by copying trunk itself. > > I want to avoid pulling this branch into my git repo with git svn > fetch because the re-rooting

Re: question git & branches

2005-08-29 Thread Jon Loeliger
On Mon, 2005-08-29 at 10:03, Linus Torvalds wrote: > (Both "git branch" and "git checkout -b " that reate a new This of course, is Git's answer to the long standing UNIX tradition. Whereas UNIX would creat() files, Git will reate() branches. > Linus jdl - To uns

Re: [PATCH] Under NO_OPENSSL -lssl should not be used

2005-08-02 Thread Jon Seymour
G'day Junio, > > Jon, do we really need bignum to do the flow computation? From > a quick glance, it appears to me that the fraction manipulation > part is quite well isolated. Do you think adding the support > for using other bignum implementation be reasonable (assuming

git-fsck-cache cleaning

2005-08-02 Thread Jon Loeliger
Hi GITers, So, after you dink around in a GIT tree for a while, and you discover little bloblets left around by using git-fsck-cache, what do you do? How can you clean up afterwards? Specifically, I have a GIT tree that shows some dangling blobs that are unreferenced in my tree. Not sure how th

Re: [PATCH] Dereference tag repeatedly until we get a non-tag.

2005-07-11 Thread Jon Seymour
object = tag->tagged; > + object = parse_object(tag->tagged->sha1); > } > > /* > > - > To unsubscribe from this list: send the line "unsubscribe git" in > the body of a message to [EMAIL PROTECTED] > More majordomo

Linus kernel tree corrupt?

2005-07-08 Thread Jon Smirl
39bf6003cc3188a10426b62d8c47ab40 [EMAIL PROTECTED] linus]$ -- Jon Smirl [EMAIL PROTECTED] - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] Prevent t6000 series from dropping useless sed.script in t/

2005-07-07 Thread Jon Seymour
Ack - sorry I didn't notice that side effect. jon. - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: Where'd my GIT tree go?

2005-07-06 Thread Jon Seymour
Ok, you asked for it: ...the GIT bucket. jon. ... ducks for cover ... - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Summary Of Jon's Recent Patches

2005-07-06 Thread Jon Seymour
ins a big fix, but assumes the tidy ups above have been applied: [PATCH 1/2] Fix --topo-order, --max-age interaction issue [PATCH 2/2] Add test case that shows --topo-order, --max-age break jon. -- homepage: http://www.zeta.org.au/~jon/ blog: http://orwelliantremors.blogspot.com/ - To unsubscribe

Re: Summary Of Jon's Recent Patches

2005-07-06 Thread Jon Seymour
> This series contains a big fix, but assumes the tidy ups above have > been applied: That'd be a _bug_ fix jon. - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH 2/2] Fix --topo-order, --max-age interaction issue

2005-07-06 Thread Jon Seymour
Applied the --merge-order, --max-age fix to fix the --topo-order problem demonstrated by the test case in the previous patch. Signed-off-by: Jon Seymour <[EMAIL PROTECTED]> --- rev-list.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 8238686fd422959dae50a908b3761aa545be1c4

[PATCH 1/2] Add test case that shows --topo-order, --max-age break

2005-07-06 Thread Jon Seymour
Uncommented a test case that shows a --topo-order, --max-age break. A subsequent patch witll fix this defect Signed-off-by: Jon Seymour <[EMAIL PROTECTED]> --- t/t6003-rev-list-topo-order.sh | 20 ++-- 1 files changed, 10 insertions(+), 10 del

[PATCH] Simplification - remove unnecessary list reversal from epoch.c

2005-07-06 Thread Jon Seymour
Since --merge-order is the only thing that cares about the rev-list parse order, change the rev-list list to match the parse order and remove the corresponding compensating reversal from epoch.c. Signed-off-by: Jon Seymour <[EMAIL PROTECTED]> --- [PATCH] Move SEEN flag into epoch.h, repla

[PATCH] Move SEEN flag into epoch.h, replace use of VISITED flag with SEEN flag

2005-07-06 Thread Jon Seymour
one and, for completeness, BOUNDARY and DISCONTINUITY too. Signed-off-by: Jon Seymour <[EMAIL PROTECTED]> --- epoch.c| 14 -- epoch.h|4 +--- rev-list.c |5 ++--- 3 files changed, 11 insertions(+), 12 deletions(-) 54a391ba7e4f96ce08ecb7da82941519b8a14c30 diff

[PATCH] Remove use of SHOWN flag

2005-07-06 Thread Jon Seymour
Now that duplicates are elided early, there is no need for the SHOWN flag. This patch removes the SHOWN flag and its uses from rev-list.c Signed-off-by: Jon Seymour <[EMAIL PROTECTED]> --- rev-list.c |4 +--- 1 files changed, 1 insertions(+), 3 del

[PATCH] Ensure list insertion method does not depend on position of --merge-order argument

2005-07-06 Thread Jon Seymour
This change ensures that git-rev-list --merge-order produces the same result irrespective of what position the --merge-order argument appears in the argument list. Signed-off-by: Jon Seymour <[EMAIL PROTECTED]> --- Linus: if you'd prefer to fix this a different way, that's fine

[PATCH 1/2] Add t/t6003 with some --topo-order tests

2005-07-06 Thread Jon Seymour
Signed-off-by: Jon Seymour <[EMAIL PROTECTED]> --- Linus: the last test fails with --topo-order at the moment. I haven't seen your most recent changes, so it may still fail for trivial reasons even then. If so, I'll post an update. t/t6003-rev-list-topo

[PATCH 2/2] Write sed script directly into temp file, rather than a variable

2005-07-06 Thread Jon Seymour
. Signed-off-by: Jon Seymour <[EMAIL PROTECTED]> --- t/t6000-lib.sh | 12 +++- t/t6001-rev-list-merge-order.sh |9 - t/t6002-rev-list-bisect.sh | 10 -- t/t6003-rev-list-topo-order.sh |9 - 4 files changed, 7 insertions(+), 33 del

[PATCH 4/13] Add a topological sort procedure to commit.c [rev 4]

2005-07-06 Thread Jon Seymour
This invariant is weaker than the --merge-order invariant, but is cheaper to calculate (assuming the list has been identified) and will serve any purpose where only a minimal topological order guarantee is required. Signed-off-by: Jon Seymour <[EMAIL PROTECTED]> --- Note: this patch currently has n

[PATCH 2/13] Swap order of insert_by_date arguments

2005-07-06 Thread Jon Seymour
Swap the order of insert_by_date arguments so that it matches the order of commit_list_insert. This patch anticipates a future change which will call the function via a pointer. Signed-off-by: Jon Seymour <[EMAIL PROTECTED]> --- commit.c |8 commit.h |6 +- e

[PATCH 1/13] Temporary fixup to rev-list.c to restore expected order of arguments presented to --merge-order sort.

2005-07-06 Thread Jon Seymour
This patch adds a hacky special case to the rev-list main to restore the order in which the --merge-order sort algorithm receives arguments. A subsequent patch will abstract this out more cleanly. Signed-off-by: Jon Seymour <[EMAIL PROTECTED]> --- rev-list.c |5 - 1 files chan

[PATCH 3/13] Introduce struct rev_list_fns to rev-list.c to reduce amount of conditional processing.

2005-07-06 Thread Jon Seymour
code. This change also makes --show-breaks imply --merge-order rather than require it as before. There was no advantage to the previous strict argument checking. A subsequent change will take advantage of this pattern to introduce a topological sort switch. Signed-off-by: Jon Seymour <[EM

[PATCH 0/13] Patch Series

2005-07-06 Thread Jon Seymour
I have re-issued the patches I have created in the last day after checking that they apply correctly when applied in this order to the current Linus HEAD (b43d44779bf98977b211256f936d0edda8a9625a) Introduction of --topo-order and tidy up of rev-list.c [PATCH 1/13] Temporary fixup to rev-list.c t

[PATCH 6/13] Change gitk so that it uses --topo-order rather than --merge-order

2005-07-06 Thread Jon Seymour
--merge-order can be maintained. Signed-off-by: Jon Seymour <[EMAIL PROTECTED]> --- Paul, could you review this patch and if you agree, ack it. The rationale for changing gitk to use --topo-order is that git-rev-list will produce the same order for --topo-order irrespective of the order of the

[PATCH 5/13] Introduce --topo-order switch to git-rev-list

2005-07-06 Thread Jon Seymour
This patch introduces a --topo-order switch to git-rev-list. When this --switch is specified, a minimal topological sort weaker than the --merge-order sort is applied to the output list. The invariant of the resulting list is: a is reachable from b => ord(b) < ord(a) Signed-off-b

[PATCH 10/13] Introduce unit tests for git-rev-list --bisect

2005-07-06 Thread Jon Seymour
This patch introduces some unit tests for the git-rev-list --bisect functionality. Signed-off-by: Jon Seymour <[EMAIL PROTECTED]> --- t/t6002-rev-list-bisect.sh | 247 1 files changed, 247 insertions(+), 0 deletions(-) create mode 100755 t

[PATCH 8/13] Fix handling of duplicates by topological order.

2005-07-06 Thread Jon Seymour
git-rev-list --topo-order HEAD HEAD caused a segmentation violation. This has now been fixed. Signed-off-by: Jon Seymour <[EMAIL PROTECTED]> --- commit.c | 15 +++ commit.h |3 +++ epoch.h| 13 ++--- rev-list.c |8 4 files chang

[PATCH 7/13] Tidy up - slight simplification of rev-list.c

2005-07-06 Thread Jon Seymour
This patch implements a small tidy up of rev-list.c to reduce (but not eliminate) the amount of ugliness associated with the merge_order flag. Signed-off-by: Jon Seymour <[EMAIL PROTECTED]> --- Linus: I decided not to abstract this out as a function as _too_ much abstraction can be a bad

[PATCH 11/13] Change the sed seperator in t/t6000-lib.sh.

2005-07-06 Thread Jon Seymour
This trivial patch removes the semicolon as the sed seperator in the t/t6000-lib.sh test script and replaces it with white space. This makes BSD sed(1) much happier. Signed-off-by: Mark Allen <[EMAIL PROTECTED]> Signed-off-by: Jon Seymour <[EMAIL PROTECTED]> --- I've applied

[PATCH 13/13] Fixes a problem with --merge-order A B (A is linear descendent of a merge B)

2005-07-06 Thread Jon Seymour
This patch passes the test case introduced by the previous patch. Signed-off-by: Jon Seymour <[EMAIL PROTECTED]> --- epoch.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 6f7f90901ec4aafd12ac4179110b78fc426395cd diff --git a/epoch.c b/epoch.c --- a/epoch.c +++ b/e

[PATCH 12/13] Add a t/t6001 test case for a --merge-order bug

2005-07-06 Thread Jon Seymour
This test case demonstrates a problem with --merge-order. A | B |\ C D |/ E | F git-rev-list --merge-order A B doesn't produce the expected output of A B D C E F The problem is fixed by a subsequent patch. Signed-off-by: Jon Seymour <[EMAIL PROTECTED]> --- t/t6001-rev-list-mer

[PATCH 9/13] Factor out useful test case infrastructure from t/t6001... into t/t6000-lib.sh

2005-07-06 Thread Jon Seymour
Functions that are useful to other t6xxx testcases are moved into t6000-lib.sh To use these functions in a test case, use a test-case pre-amble like: . ./test-lib.sh . ../t6000-lib.sh # t6xxx specific functions Signed-off-by: Jon Seymour <[EMAIL PROTECTED]> --- t/t6000-

[PATCH 1/2] Add a t/t6001 test case for a --merge-order bug

2005-07-06 Thread Jon Seymour
This test case demonstrates a problem with --merge-order. A | B |\ C D |/ E | F git-rev-list --merge-order A B doesn't produce the expected output of A B D C E F Signed-off-by: Jon Seymour <[EMAIL PROTECTED]> --- This patch is known designed to apply on top of: [PATCH 1/6] Tempora

[PATCH 2/2] Fixes a problem with --merge-order A B (A is linear descendent of a merge B)

2005-07-06 Thread Jon Seymour
This patch passes the test case in the first patch of this series. Signed-off-by: Jon Seymour <[EMAIL PROTECTED]> --- epoch.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) e4f793b932b30a7bee16610e311630515fe88330 diff --git a/epoch.c b/epoch.c --- a/epoch.c +++ b/e

[PATCH 3/3] Change the sed seperator in t/t6000-lib.sh.

2005-07-06 Thread Jon Seymour
This trivial patch removes the semicolon as the sed seperator in the t/t6000-lib.sh test script and replaces it with white space. This makes BSD sed(1) much happier. Signed-off-by: Mark Allen <[EMAIL PROTECTED]> Signed-off-by: Jon Seymour <[EMAIL PROTECTED]> --- I've applied

[PATCH 2/3] Introduce unit tests for git-rev-list --bisect

2005-07-06 Thread Jon Seymour
This patch introduces some unit tests for the git-rev-list --bisect functionality. Signed-off-by: Jon Seymour <[EMAIL PROTECTED]> --- t/t6002-rev-list-bisect.sh | 247 1 files changed, 247 insertions(+), 0 deletions(-) create mode 100755 t

[PATCH 1/3] Factor out useful test case infrastructure from t/t6001... into t/t6000-lib.sh

2005-07-06 Thread Jon Seymour
Functions that are useful to other t6xxx testcases are moved into t6000-lib.sh To use these functions in a test case, use a test-case pre-amble like: . ./test-lib.sh . ../t6000-lib.sh # t6xxx specific functions Signed-off-by: Jon Seymour <[EMAIL PROTECTED]> --- This patch series intr

[PATCH] Tidy up - slight simplification of rev-list.c

2005-07-06 Thread Jon Seymour
This patch implements a small tidy up of rev-list.c to reduce (but not eliminate) the amount of ugliness associated with the merge_order flag. Signed-off-by: Jon Seymour <[EMAIL PROTECTED]> --- Linus: I decided not to abstract this out as a function as _too_ much abstraction can be a bad

[PATCH 3/6] Introduce struct rev_list_fns to rev-list.c to reduce amount of conditional processing.

2005-07-06 Thread Jon Seymour
code. This change also makes --show-breaks imply --merge-order rather than require it as before. There was no advantage to the previous strict argument checking. A subsequent change will take advantage of this pattern to introduce a topological sort switch. Signed-off-by: Jon Seymour <[EM

[PATCH 2/6] Swap order of insert_by_date arguments

2005-07-06 Thread Jon Seymour
Swap the order of insert_by_date arguments so that it matches the order of commit_list_insert. This patch anticipates a future change which will call the function via a pointer. Signed-off-by: Jon Seymour <[EMAIL PROTECTED]> --- commit.c |8 commit.h |6 +- e

[PATCH 1/6] Temporary fixup to rev-list.c to restore expected order of arguments presented to --merge-order sort.

2005-07-06 Thread Jon Seymour
This patch adds a hacky special case to the rev-list main to restore the order in which the --merge-order sort algorithm receives arguments. A subsequent patch will abstract this out more cleanly. Signed-off-by: Jon Seymour <[EMAIL PROTECTED]> --- rev-list.c |5 - 1 files chan

[PATCH 4/6] Add a topological sort procedure to commit.c [rev 4]

2005-07-06 Thread Jon Seymour
This invariant is weaker than the --merge-order invariant, but is cheaper to calculate (assuming the list has been identified) and will serve any purpose where only a minimal topological order guarantee is required. Signed-off-by: Jon Seymour <[EMAIL PROTECTED]> --- Note: this patch currently has n

[PATCH 6/6] Change gitk so that it uses --topo-order rather than --merge-order

2005-07-06 Thread Jon Seymour
--merge-order can be maintained. Signed-off-by: Jon Seymour <[EMAIL PROTECTED]> --- Paul, could you review this patch and if you agree, ack it. The rationale for changing gitk to use --topo-order is that git-rev-list will produce the same order for --topo-order irrespective of the order of the

[PATCH 5/6] Introduce --topo-order switch to git-rev-list

2005-07-06 Thread Jon Seymour
This patch introduces a --topo-order switch to git-rev-list. When this --switch is specified, a minimal topological sort weaker than the --merge-order sort is applied to the output list. The invariant of the resulting list is: a is reachable from b => ord(b) < ord(a) Signed-off-b

Re: [PATCH] Restore expected list order for --merge-order switch

2005-07-05 Thread Jon Seymour
G'day Linus, Is there some reason why this didn't get applied? jon. On 7/5/05, Jon Seymour <[EMAIL PROTECTED]> wrote: > > A recent change to rev-list altered the order in which start points > are presented to the merge-order sort algorithm. This caused > brea

Re: [PATCH] Add script for patch submission via e-mail.

2005-07-05 Thread Jon Seymour
is not clear to me git-format-patch-script needs to worry about merge questions. It'd be better to put such logic in a separate rebasing script, I think. If anything, you might want to add checks to git-format-patch script that refuse to generate a patch sequence for any sequence of pat

Re: [PATCH] Add script for patch submission via e-mail.

2005-07-05 Thread Jon Seymour
t > to the gloomy dark world of the poor core Git plumbing users. ;-) As one who inhabits that dark world, I second that! jon. - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] Fixlet for argument parsing in rev-list.

2005-07-05 Thread Jon Seymour
I ack the patch, though --show-breaks could use the same treatment. jon. On 7/5/05, Junio C Hamano <[EMAIL PROTECTED]> wrote: > The --merge-order flag does not take parameter so there is no > point doing strncmp with the length. > > Signed-off-by: Junio C Hamano

  1   2   >