From 9513aa01fab73f53e4fe18644c7d5b530a66c6a1 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Sun, 18 Oct 2009 23:15:55 +0200 Subject: Added frame for configuration reader involving a meta class, decorators and tests - most of which still has to be filled out --- test/fixtures/git_config | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 test/fixtures/git_config (limited to 'test/fixtures') diff --git a/test/fixtures/git_config b/test/fixtures/git_config new file mode 100644 index 00000000..3c91985f --- /dev/null +++ b/test/fixtures/git_config @@ -0,0 +1,23 @@ +[core] + repositoryformatversion = 0 + filemode = true + bare = false + logallrefupdates = true +[remote "origin"] + fetch = +refs/heads/*:refs/remotes/origin/* + url = git://gitorious.org/~byron/git-python/byrons-clone.git + pushurl = git@gitorious.org:~byron/git-python/byrons-clone.git +[branch "master"] + remote = origin + merge = refs/heads/master +[remote "mainline"] + url = git://gitorious.org/git-python/mainline.git + fetch = +refs/heads/*:refs/remotes/mainline/* +[remote "MartinMarcher"] + url = git://gitorious.org/~martin.marcher/git-python/serverhorror.git + fetch = +refs/heads/*:refs/remotes/MartinMarcher/* +[gui] + geometry = 1316x820+219+243 207 192 +[branch "mainline_performance"] + remote = mainline + merge = refs/heads/master -- cgit v1.2.3 From 3fd37230e76a014cf5c45d55daf0be2caa6948b7 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Mon, 19 Oct 2009 14:27:10 +0200 Subject: implemented config class as far as necessary, one check is still failing Added odict module to get an OrderedDict to be used in the config parser, assuring the order of sections and options does not change --- test/fixtures/git_config_global | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 test/fixtures/git_config_global (limited to 'test/fixtures') diff --git a/test/fixtures/git_config_global b/test/fixtures/git_config_global new file mode 100644 index 00000000..1a55397f --- /dev/null +++ b/test/fixtures/git_config_global @@ -0,0 +1,24 @@ +[alias] + st = status + ci = commit + co = checkout + br = branch +[color] + branch = auto + diff = auto + interactive = auto + status = auto +[user] + name = Sebastian Thiel + email = byronimo@gmail.com +[core] + editor = vim + autocrlf = false + packedGitLimit = 1g + packedGitWindowSize = 512m +[pack] + windowMemory = 512m +[merge] + tool = meld +[diff] + tool = meld -- cgit v1.2.3 From 50a9920b1bd9e6e8cf452c774c499b0b9014ccef Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Tue, 20 Oct 2009 17:04:23 +0200 Subject: Added initial version of the index reading from file - IndexEntry interface is to be improved though, writing needs to be implemented as well --- test/fixtures/index | Bin 0 -> 163616 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 test/fixtures/index (limited to 'test/fixtures') diff --git a/test/fixtures/index b/test/fixtures/index new file mode 100644 index 00000000..40914bac Binary files /dev/null and b/test/fixtures/index differ -- cgit v1.2.3 From 152bab7eb64e249122fefab0d5531db1e065f539 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Tue, 20 Oct 2009 22:05:51 +0200 Subject: improved IndexEntry type and added test for parsing of the stage --- test/fixtures/index_merge | Bin 0 -> 9192 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 test/fixtures/index_merge (limited to 'test/fixtures') diff --git a/test/fixtures/index_merge b/test/fixtures/index_merge new file mode 100644 index 00000000..2a743455 Binary files /dev/null and b/test/fixtures/index_merge differ -- cgit v1.2.3