Re: A few contributor's questions

2014-02-03 Thread Andreas Ericsson
/libgit2/blob/development/.HEADER I'm mostly adding it here for the sake of clarity in case people find this in the future and wonder what all the fuzz was about. -- Andreas Ericsson andreas.erics...@op5.se OP5 AB www.op5.se Tel: +46 8-230225

Re: htonll, ntohll

2013-11-13 Thread Andreas Ericsson
and decode functions. If you or the author of the post you linked think otherwise, you're misinformed and need to learn what encoding and decoding means. -- Andreas Ericsson andreas.erics...@op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46

Re: [PATCH 00/86] replace prefixcmp() with has_prefix()

2013-11-11 Thread Andreas Ericsson
), whereas your function must return non-zero on match and thus can't be used as a qsort() callback. Granted, prefixcmp() lends itself poorly to that as well, but at least it's consistent with the other *cmp() functions. So -1 on this whole series. -- Andreas Ericsson andreas.erics

Re: Understanding Git Under The Hood: Trees

2013-08-16 Thread Andreas Ericsson
HEAD will give you an idea of how that looks. -- Andreas Ericsson andreas.erics...@op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 Considering the successes of the wars on alcohol, poverty, drugs and terror, I think we

Re: Understanding Git Under The Hood: Trees

2013-08-15 Thread Andreas Ericsson
. The packfiles actually reduce I/O, since it lets the kernel use the disk's builtin caches a lot better, and read-ahead works to our advantage. Btw, when I say minimize disk I/O, I really mean minimize user wait, although disk I/O is certainly (often) the largest part of that. -- Andreas Ericsson

Re: Workflow Help

2013-05-21 Thread Andreas Ericsson
, this model should work reasonably well while avoiding the whole where are the bugfixes and in which order do I need to apply them? issue. -- Andreas Ericsson andreas.erics...@op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231

Re: [rfh] do I need to use something more complex to do this?

2013-04-10 Thread Andreas Ericsson
to ask for help. -- Andreas Ericsson andreas.erics...@op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 Considering the successes of the wars on alcohol, poverty, drugs and terror, I think we should give some serious

Re: Git/Mac refuses to install on OS X 10.8 (Mountain Lion)

2013-04-07 Thread Andreas Ericsson
won't even have to document it since google should provide it for git and a plethora of other useful packages. Otoh, if enough osx folks want git on the latest pussycat, I'm sure they'll provide a package themselves sooner or later, in which case you just have to wait for that to happen. -- Andreas

Re: cd

2013-04-03 Thread Andreas Ericsson
and prepares to commit a version without it. From git's point of view, it's not an error if the file doesn't exist. It *is* an error if the directory where the file should reside suddenly no longer a directory though. -- Andreas Ericsson andreas.erics...@op5.se OP5 AB

Re: git status takes 30 seconds on Windows 7. Why?

2013-03-27 Thread Andreas Ericsson
is local? Preferrably a solid state drive. If it's still slow there, we know for sure something's broken inside git. If switching media causes git to become fast, you'll know it's a hardware problem. -- Andreas Ericsson andreas.erics...@op5.se OP5 AB www.op5

Re: auto merge bug

2013-03-05 Thread Andreas Ericsson
sane used union outside toy examples. I do, for lists used in tests or to generate perfect hashes from. It's really quite handy for things like that but totally useless for any type of multiline format, or even .ini style files unless you're very, very careful with how you write them. -- Andreas

Re: Certificate validation vulnerability in Git

2013-02-24 Thread Andreas Ericsson
the same convention if/when you reply. Thanks. -- Andreas Ericsson andreas.erics...@op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 Considering the successes of the wars on alcohol, poverty, drugs and terror, I think we should

Re: Is this a bug?

2013-02-19 Thread Andreas Ericsson
the condition first screams for a comma and a slight stagger in reading flow, like so: Unless built with gcc, use compat-layer __builtin_clz() -- Andreas Ericsson andreas.erics...@op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231

Re: git branch case insensitivity (Possible bug)

2013-01-09 Thread Andreas Ericsson
with sensible settings? If you said yes to all of the above, this is a filesystem feature, courtesy of (cr)Apple, and you're screwed. You can work around it by running git pack-refs every time you create a branch or a tag though. -- Andreas Ericsson andreas.erics...@op5.se OP5 AB

Re: [PATCH] fsck: warn about .git in trees

2012-12-04 Thread Andreas Ericsson
? Apart from the checks already in place, checking for git's internal directory separator marker (which is '/') is enough to catch both, and that check is done. -- Andreas Ericsson andreas.erics...@op5.se OP5 AB www.op5.se Tel: +46 8-230225

Re: Possible vulnerability to SHA-1 collisions

2012-11-28 Thread Andreas Ericsson
to change all repositories involved then the hash function used is really quite irrelevant. -- Andreas Ericsson andreas.erics...@op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 Considering the successes of the wars

Re: Millisecond precision in timestamps?

2012-11-28 Thread Andreas Ericsson
specify the timeunit and the start-point either, and then we could store the history of carbon-based lifeforms on earth in git. -- Andreas Ericsson andreas.erics...@op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231

Re: Millisecond precision in timestamps?

2012-11-28 Thread Andreas Ericsson
to shoot your slaves with stone arrows back then. See my other proposal for how this could be done, which would only affect the output layer (and some care would have to be taken with the input, naturally). -- Andreas Ericsson andreas.erics...@op5.se OP5 AB

Re: Python extension commands in git - request for policy change

2012-11-26 Thread Andreas Ericsson
a chance of some substantial technical benefits from doing so. -- Andreas Ericsson andreas.erics...@op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 Considering the successes of the wars on alcohol, poverty, drugs and terror

Re: Failure to extra sta...@vger.kernel.org addresses

2012-11-20 Thread Andreas Ericsson
is warranted, to me s/(.*?)(.*)$/$1/ is just fine. It's intentionally left without the at-sign so one can send mail to a local account as well as remote ones. Very nifty when debugging, and when one wants to preview outgoing emails. -- Andreas Ericsson andreas.erics...@op5.se OP5

Re: Lack of netiquette, was Re: [PATCH v4 00/13] New remote-hg helper

2012-11-02 Thread Andreas Ericsson
of their mind when using it. After all, very few people knowingly quote nazi concentration camp slogans. -- Andreas Ericsson andreas.erics...@op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 Considering the successes

Re: Who is the 'git' vendor?

2012-10-25 Thread Andreas Ericsson
to if it breaks your systems, and unless you purchase a support contract from somewhere there's noone to turn to except the (excellent) git community in case you have issues with it. -- Andreas Ericsson andreas.erics...@op5.se OP5 AB www.op5.se Tel: +46

Re: libgit2 status

2012-10-20 Thread Andreas Ericsson
includes src/include/tag.h, so no code needs to be duplicated, but internal parts of the library can still use lower- level stuff if it wants to. It's a good compromise when creating a library from application code and there were no opaque types from the start. -- Andreas Ericsson

Re: Is anyone working on a next-gen Git protocol?

2012-10-08 Thread Andreas Ericsson
it'll have to wait for 2.0, unless the current client-side part of it is dumb and ignores existing refs when requesting its wants, in which case the server can just stop advertising existing refs and most of the speedup is already done. -- Andreas Ericsson andreas.erics...@op5.se

Re: inconsistent behavior on mac with case changes

2012-09-14 Thread Andreas Ericsson
spend their days looking for questions to answer. -- Andreas Ericsson andreas.erics...@op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 Considering the successes of the wars on alcohol, poverty, drugs and terror, I think we

Re: [PATCH] git-am: Handle git show output correctly

2012-09-12 Thread Andreas Ericsson
somewhere. I believe that would provide almost every scenario with the expected outcome (including 'git show | grep'), but there will be a handful of very surprised people as well. -- Andreas Ericsson andreas.erics...@op5.se OP5 AB www.op5.se Tel: +46 8

Re: [PATCH 4/4] Add a function string_list_longest_prefix()

2012-09-10 Thread Andreas Ericsson
building something sensible out of git's headers, I'd be happy to help. libgit2 uses doxygen btw, and has done since the start. If we ever merge the two, it would be neat to use the same. -- Andreas Ericsson andreas.erics...@op5.se OP5 AB www.op5.se

Re: Using doxygen (or something similar) to generate API docs [was [PATCH 4/4] Add a function string_list_longest_prefix()]

2012-09-10 Thread Andreas Ericsson
). That's one of the problems. People follow what's already there, and there are no comments there now so there won't be any added in the future :-/ -- Andreas Ericsson andreas.erics...@op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8

Re: libgit2 status

2012-08-25 Thread Andreas Ericsson
is on handing over control to the core stuff of git to a commercial entity, but it doesn't seem to be a dying project, so I'd say go ahead and do it. -- Andreas Ericsson andreas.erics...@op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8

Re: git on HP NonStop

2012-08-23 Thread Andreas Ericsson
of git code. If they aren't used to that idiom, they usually investigate it in the code and pretty quickly realize that what it means. -- Andreas Ericsson andreas.erics...@op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231

Re: git am and the wrong chunk of ---

2012-08-10 Thread Andreas Ericsson
be a good cutoff, if they're present. I've never seen anyone put commit message text below them anyway. -- Andreas Ericsson andreas.erics...@op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 Considering the successes