Tonight I did a bunch of tiny steps towards making the cache management
code behave more like a library. There are no longer any global variables
in read-cache.c. Nothing ever uses more than one cache yet, but I can
see how it might simplify some of the merge code.
They're also visible here:
tree f45fd10b26bf98349b63427805a96bd0551cad74
parent 43fdf65356c50483233cb3d6e391b0849b2a2a50
parent cd1c034369b73da7503da365fa556aab27004814
author Brad Roberts [EMAIL PROTECTED] 1114072582 -0700
committer Brad Roberts [EMAIL PROTECTED] 1114072582 -0700
[PATCH] write_cache api signature change
tree ebbf2c037e68116c4ff934f140ca12cdbe13311d
parent 77de9e0b7a81ddc22526c9415f0273171f631d3f
author Brad Roberts [EMAIL PROTECTED] 1114073146 -0700
committer Brad Roberts [EMAIL PROTECTED] 1114073146 -0700
[PATCH] Add new api's to front the active_cache and active_nr cache internals
Signed-off
tree 8140acee0f9c57bfd87f40d1f99242c772afcdf2
parent 32efd81a3292a923ce5b5ae2e39ffefd0b08664d
author Brad Roberts [EMAIL PROTECTED] 1114074631 -0700
committer Brad Roberts [EMAIL PROTECTED] 1114074631 -0700
[PATCH] migrate merge-cache.c over to the new cache api's
Signed-off-by: Brad Roberts
tree 7a3cab4437a849857cc899017b97eea1787a6ce1
parent 099367f98cc063c33733d15c7a2d9737bea853d9
author Brad Roberts [EMAIL PROTECTED] 1114077044 -0700
committer Brad Roberts [EMAIL PROTECTED] 1114077044 -0700
[PATCH] migrate read-tree.c to the new cache api's
Signed-off-by: Brad Roberts [EMAIL
tree 54aca1a1c5f41995c79fdf6b5f720574d0bfd8ef
parent 50a6596bf7f51ecd598cd02d9c44379a9b92044a
author Brad Roberts [EMAIL PROTECTED] 1114077105 -0700
committer Brad Roberts [EMAIL PROTECTED] 1114077105 -0700
[PATCH] migrate check-files.c to the new cache api's
Signed-off-by: Brad Roberts [EMAIL
tree a2c82ce3512904f82f78d87d86709a471f67ef9f
parent ff3667537379d5b0680e8c4f9a14d82dc9835430
author Brad Roberts [EMAIL PROTECTED] 1114083477 -0700
committer Brad Roberts [EMAIL PROTECTED] 1114083477 -0700
[PATCH] move cache_header out of the public view
Signed-off-by: Brad Roberts [EMAIL
tree c806c7328a6c9297df108ab00ebe1c4014496cb0
parent b7d4fa53d4ee449b4b9b4f3c9dd40d6c99db4bc1
author Brad Roberts [EMAIL PROTECTED] 1114086327 -0700
committer Brad Roberts [EMAIL PROTECTED] 1114086327 -0700
[PATCH] introduce a cache struct and move the various cache globals into it.
New elements
tree f8dd454f774d42526149193970b612a46f3ddd26
parent 058c25fd81e5949354d96f2aad222ae73a6c1dee
author Brad Roberts [EMAIL PROTECTED] 1114088345 -0700
committer Brad Roberts [EMAIL PROTECTED] 1114088345 -0700
[PATCH] rename cache_match_stat to ce_match_stat to match other cache_entry
related
tree 38adb888a4c1adfe083f24d4ec51018e0b5a8335
parent 0a556dc01b8e48f684ce6e0c26f8c00b5e39c4ac
author Brad Roberts [EMAIL PROTECTED] 1114093024 -0700
committer Brad Roberts [EMAIL PROTECTED] 1114093024 -0700
[PATCH] the end goal of the last dozen or so commits, there's no longer a
global cache
Make the cache management code behave more like a library. There are no
longer any global variables in read-cache.c. Nothing ever uses more than
one cache yet, but I can see how it might simplify some of the merge code.
Signed-off-by: Brad Roberts [EMAIL PROTECTED]
---
cache.h
On Sun, 17 Apr 2005, Petr Baudis wrote:
Date: Sun, 17 Apr 2005 21:59:00 +0200
From: Petr Baudis [EMAIL PROTECTED]
To: Daniel Barkalow [EMAIL PROTECTED]
Cc: git@vger.kernel.org
Subject: Re: [3/5] Add http-pull
Dear diary, on Sun, Apr 17, 2005 at 09:24:27PM CEST, I got a letter
where Daniel
Ok.. so there's been a couple attempts to patch the leak that were all
wrong due to mixed memory management for that array. Here's a seed for
discussion on how to plug that leak. Some would argue that it's not
leaking enough to fix, but for those that want to turn git into a library,
the
Converted git to libgit. Moved all the main() calls into a single
multi-call binary - git-main.
Made extern a bunch of functions that were static. Verified it at least
still minimally worked.
Note: this is only a first step towards creating a generic library.
Figuring out what functions and
I've made my tree rsync'able:
rsync://gameboy2.puremagic.com/git
commit 1cdbc0a19b8d9b68f1f42735e2f14f1289823a63
tree 0e060fed0642337e675368913ec8d4f910a9f019
parent 11ed64c1b141c9ba397a1ca76aef2cd250976007
author Brad Roberts,,, [EMAIL PROTECTED] 1113736632 -0700
committer Brad Roberts
tree c291316b28eff4042c80850cd93445345a606835
parent 1cdbc0a19b8d9b68f1f42735e2f14f1289823a63
author Brad Roberts [EMAIL PROTECTED] 1113738584 -0700
committer Brad Roberts,,, [EMAIL PROTECTED] 1113738584 -0700
gitfork needs to normalize the optional third parameter before using it.
Index
Index: gitfork.sh
===
--- 51b1bddbbc05e50d5bbf1f9662e503c2e85d5e96/gitfork.sh (mode:100755
sha1:e5692ea9bdbc39b028fe1e1205381da632541bab)
+++ c291316b28eff4042c80850cd93445345a606835/gitfork.sh (mode:100755
On Sun, 17 Apr 2005, Linus Torvalds wrote:
On Sun, 17 Apr 2005, Brad Roberts wrote:
(ok, author looks better, but committer doesn't obey the AUTHOR_ vars yet)
They should't, but maybe I should add COMMITTER_xxx overrides. I just do
_not_ want people to think that they should claim
18 matches
Mail list logo