jelmer/gitpython.git
15 years agoFix use of bare repositories. master
Jelmer Vernooij [Sat, 26 Jul 2008 20:52:34 +0000 (22:52 +0200)]
Fix use of bare repositories.

15 years agoRemove debug statement.
Jelmer Vernooij [Sat, 26 Jul 2008 16:19:04 +0000 (18:19 +0200)]
Remove debug statement.

15 years agoAvoid stripping newlines in blob data.
Jelmer Vernooij [Sat, 26 Jul 2008 12:46:05 +0000 (14:46 +0200)]
Avoid stripping newlines in blob data.

15 years agobump for package change.
Michael Trier [Sun, 20 Jul 2008 00:18:38 +0000 (20:18 -0400)]
bump for package change.

15 years agoMade MANIFEST changes.
Michael Trier [Sun, 20 Jul 2008 00:15:59 +0000 (20:15 -0400)]
Made MANIFEST changes.

15 years agoAlways fogetting the changes.
Michael Trier [Thu, 17 Jul 2008 21:25:06 +0000 (17:25 -0400)]
Always fogetting the changes.

15 years agoRemoved method_missing since it was only used in one place.
Michael Trier [Thu, 17 Jul 2008 21:22:01 +0000 (17:22 -0400)]
Removed method_missing since it was only used in one place.

15 years agofixed a silly typo
Florian Apolloner [Thu, 17 Jul 2008 21:05:44 +0000 (23:05 +0200)]
fixed a silly typo

15 years agobump
Michael Trier [Thu, 17 Jul 2008 02:30:42 +0000 (22:30 -0400)]
bump

15 years agoCleaned up changes file.
Michael Trier [Thu, 17 Jul 2008 02:23:45 +0000 (22:23 -0400)]
Cleaned up changes file.

15 years agoAdded license information to all files.
Michael Trier [Thu, 17 Jul 2008 02:18:21 +0000 (22:18 -0400)]
Added license information to all files.

15 years agofixed http://groups.google.com/group/git-python/browse_thread/thread/62b972d2345c74c2...
Florian Apolloner [Tue, 8 Jul 2008 21:07:29 +0000 (23:07 +0200)]
fixed groups.google.com/group/git-python/browse_thread/thread/62b972d2345c74c2?hl=en# and added lines to the per file stats

15 years agofixed http://groups.google.com/group/git-python/browse_thread/thread/b8f3580abf31f9db...
Florian Apolloner [Tue, 24 Jun 2008 22:41:41 +0000 (00:41 +0200)]
fixed groups.google.com/group/git-python/browse_thread/thread/b8f3580abf31f9db?hl=en# and passed Git a working_tree again (sort of).

15 years agoadded os.path.expanduser to the repo initialization
Florian Apolloner [Sat, 21 Jun 2008 21:16:38 +0000 (23:16 +0200)]
added os.path.expanduser to the repo initialization

15 years agocontinued yesterdays work on the execute stuff
Florian Apolloner [Sat, 21 Jun 2008 16:44:07 +0000 (18:44 +0200)]
continued yesterdays work on the execute stuff

15 years agoMerge branch 'master' of git@gitorious.org:git-python/apollo13
Florian Apolloner [Fri, 20 Jun 2008 21:39:57 +0000 (23:39 +0200)]
Merge branch 'master' of git@gitorious.org:git-python/apollo13

15 years agomade with_exceptions=True default (don't look before you leak ;)) and removed the...
Florian Apolloner [Fri, 20 Jun 2008 21:22:52 +0000 (23:22 +0200)]
made with_exceptions=True default (don't look before you leak ;)) and removed the combined output of stderr and stdout.
Also renamed with_status to extended_output.
The method_missing function needs to be modified, as it does a kwargs.pop(xxx, None); which resulted in with_excpetions=None -> False all the time...
Test should follow tomorrow.

15 years agoMerge branch 'master' of git://gitorious.org/git-python/david into bisect
Florian Apolloner [Fri, 20 Jun 2008 20:46:11 +0000 (22:46 +0200)]
Merge branch 'master' of git://gitorious.org/git-python/david into bisect

15 years agofixed the tests, which where broken before my commit, although the bug didn't reveal...
Florian Apolloner [Fri, 20 Jun 2008 20:43:15 +0000 (22:43 +0200)]
fixed the tests, which where broken before my commit, although the bug didn't reveal it...

15 years agoMerge branch 'master' of git://gitorious.org/git-python/david
Florian Apolloner [Fri, 20 Jun 2008 20:14:41 +0000 (22:14 +0200)]
Merge branch 'master' of git://gitorious.org/git-python/david

15 years agofixed second problem in http://groups.google.com/group/git-python/browse_thread/threa...
Florian Apolloner [Fri, 20 Jun 2008 19:05:10 +0000 (21:05 +0200)]
fixed second problem in groups.google.com/group/git-python/browse_thread/thread/b8f3580abf31f9db?hl=en#
I'll look at the other one in an hour

15 years agocmd: rename with_keep_cwd to keep_cwd
David Aguilar [Mon, 16 Jun 2008 00:03:53 +0000 (17:03 -0700)]
cmd: rename with_keep_cwd to keep_cwd

Having execute() use a different directory is an important piece
of API information so I added more documentation about it and
renamed the flag to just "keep_cwd" since that's shorter and simpler.

Signed-off-by: David Aguilar <davvid@gmail.com>
15 years agoMerge commit 'sverre/master' into david
David Aguilar [Sun, 15 Jun 2008 23:54:43 +0000 (16:54 -0700)]
Merge commit 'sverre/master' into david

* commit 'sverre/master':
  Added a with_keep_cwd option
  Improved the GIT_PYTHON_TRACE=full output format
  Added /dist to .gitignore

Conflicts:

lib/git/cmd.py

Signed-off-by: David Aguilar <davvid@gmail.com>
15 years agocmd: better support for bare repositories
David Aguilar [Sun, 15 Jun 2008 23:45:29 +0000 (16:45 -0700)]
cmd: better support for bare repositories

In order to avoid the expense of parsing .git/config
just to know whether or not a repository is bare
at __init__ time, we just pass an optional flag to
Git.__init__():
bare_repo with a default value of False.

Repo.init_bare() was updated to pass this flag.

We could have an optional Git.read_bare_status() function
that does the expensive lookup.  Then, users can optionally
call it at runtime if they really need to know whether or not
a repository is bare.  That seems like a decent tradeoff between
speed, correctness, and common use cases.

Signed-off-by: David Aguilar <davvid@gmail.com>
15 years agoAdded a with_keep_cwd option
Sverre Rabbelier [Fri, 13 Jun 2008 18:10:01 +0000 (20:10 +0200)]
Added a with_keep_cwd option

When executing commands, if the with_keep_cwd option is
specified, the current working directory will be set to
os.getcwd() instead of the directory containing the
.git directory.

15 years agoImproved the GIT_PYTHON_TRACE=full output format
Sverre Rabbelier [Fri, 13 Jun 2008 17:40:14 +0000 (19:40 +0200)]
Improved the GIT_PYTHON_TRACE=full output format

It now also shows stderr if there was any on it, and only
shows stdout if there was any output. Also added a '->'
between the command and the return value as a visual clue.

15 years agoAdded /dist to .gitignore
Sverre Rabbelier [Wed, 11 Jun 2008 17:35:45 +0000 (19:35 +0200)]
Added /dist to .gitignore

15 years agocmd: properly handle cwd for repos with work trees
David Aguilar [Thu, 12 Jun 2008 10:01:09 +0000 (03:01 -0700)]
cmd: properly handle cwd for repos with work trees

This is a fix on top of Govind's latest performance improvement.

self._cwd was always set to self._git_dir which means
a lot of commands that require work trees were not available
to GitPython.  Execute now uses self._cwd which is equal to
self._git_dir by default, and self.get_work_tree() if a work tree
exists.

Signed-off-by: David Aguilar <davvid@gmail.com>
15 years agorepo: these changes make Govind's latest changes pass the test cases
David Aguilar [Thu, 12 Jun 2008 09:57:00 +0000 (02:57 -0700)]
repo: these changes make Govind's latest changes pass the test cases

Signed-off-by: David Aguilar <davvid@gmail.com>
15 years agoDetermine git_dir and git_work_tree in python.
Govind Salinas [Sat, 7 Jun 2008 03:49:15 +0000 (22:49 -0500)]
Determine git_dir and git_work_tree in python.

Calling git to find the git_dir and work_tree is very costly.
This patch uses the same mechanisim to find the git_dir as native
git does without shelling out.

Signed-off-by: Govind Salinas <blix@sophiasuchtig.com>
15 years agostupid typo *grr*
Florian Apolloner [Wed, 11 Jun 2008 17:51:09 +0000 (19:51 +0200)]
stupid typo *grr*

15 years agoremoved to much :þ
Florian Apolloner [Wed, 11 Jun 2008 17:47:49 +0000 (19:47 +0200)]
removed to much :þ

15 years agoadded support for GIT_PYTHON_TRACE=='full', thx to SRabbelier for the suggestion
Florian Apolloner [Wed, 11 Jun 2008 15:14:26 +0000 (17:14 +0200)]
added support for GIT_PYTHON_TRACE=='full', thx to SRabbelier for the suggestion

15 years agofixed init_bare
Florian Apolloner [Wed, 11 Jun 2008 14:49:25 +0000 (16:49 +0200)]
fixed init_bare

15 years agoMerge branch 'master' of git://gitorious.org/git-python/mainline
Florian Apolloner [Sat, 7 Jun 2008 14:23:42 +0000 (16:23 +0200)]
Merge branch 'master' of git://gitorious.org/git-python/mainline

15 years agofixed up the getattr stuff
Florian Apolloner [Sat, 7 Jun 2008 09:36:57 +0000 (11:36 +0200)]
fixed up the getattr stuff

15 years agouse getattr instead of gettatribute
Florian Apolloner [Thu, 5 Jun 2008 21:47:12 +0000 (23:47 +0200)]
use getattr instead of gettatribute

15 years agochanged svn to git. This makes more sense. I tried trunk, master, edge.
Michael Trier [Mon, 2 Jun 2008 13:46:48 +0000 (09:46 -0400)]
changed svn to git. This makes more sense. I tried trunk, master, edge.

15 years agotests: removed an obsolete comment in test_it_ignores_false_kwargs
David Aguilar [Mon, 2 Jun 2008 06:04:57 +0000 (23:04 -0700)]
tests: removed an obsolete comment in test_it_ignores_false_kwargs

Signed-off-by: David Aguilar <davvid@gmail.com>
15 years agoGit: guard against passing False to git commands
David Aguilar [Sun, 1 Jun 2008 06:01:17 +0000 (23:01 -0700)]
Git: guard against passing False to git commands

git does not accept commands of the form:
git cmd --xx=False
or
git cmd -xFalse

This patch prevents transform_kwargs from producing
command lines with those values.

This adds some flexibility/syntactic sugar for callers
since they can then assume that kwargs with a False value
are not passed to git commands.

Signed-off-by: David Aguilar <davvid@gmail.com>
15 years agostyle: remove spaces around parens per PEP8
David Aguilar [Sun, 1 Jun 2008 19:52:53 +0000 (12:52 -0700)]
style: remove spaces around parens per PEP8

Signed-off-by: David Aguilar <davvid@gmail.com>
15 years agostyle: follow PEP 8 in git/cmd.py
David Aguilar [Sun, 1 Jun 2008 19:58:32 +0000 (12:58 -0700)]
style: follow PEP 8 in git/cmd.py

Keyword args shouldn't use spaces around the equals sign
per PEP 8.

Signed-off-by: David Aguilar <davvid@gmail.com>
15 years agoput version stuff back.
Michael Trier [Mon, 2 Jun 2008 01:44:29 +0000 (21:44 -0400)]
put version stuff back.

15 years agotests: add a test to ensure False is never passed to Git.execute
David Aguilar [Sun, 1 Jun 2008 06:12:43 +0000 (23:12 -0700)]
tests: add a test to ensure False is never passed to Git.execute

Signed-off-by: David Aguilar <davvid@gmail.com>
15 years agoGit: guard against passing False to git commands
David Aguilar [Sun, 1 Jun 2008 06:01:17 +0000 (23:01 -0700)]
Git: guard against passing False to git commands

git does not accept commands of the form:
git cmd --xx=False
or
git cmd -xFalse

This patch prevents transform_kwargs from producing
command lines with those values.

This adds some flexibility/syntactic sugar for callers
since they can then assume that kwargs with a False value
are not passed to git commands.

Signed-off-by: David Aguilar <davvid@gmail.com>
15 years agoforgot to remove the stuff from README.
Michael Trier [Sun, 1 Jun 2008 02:06:14 +0000 (22:06 -0400)]
forgot to remove the stuff from README.

Signed-off-by: Michael Trier <mtrier@gmail.com>
15 years agoRemoved tutorial from README and added it into new doc section.
Michael Trier [Sun, 1 Jun 2008 02:04:21 +0000 (22:04 -0400)]
Removed tutorial from README and added it into new doc section.

15 years agostupid me i shouldn't use assert() in tests
David Aguilar [Sat, 31 May 2008 23:56:20 +0000 (16:56 -0700)]
stupid me i shouldn't use assert() in tests

assert_true instead because optimized python won't see asserts.

Signed-off-by: David Aguilar <davvid@gmail.com>
15 years agofixed the buffer test.
Florian Apolloner [Sat, 31 May 2008 23:32:33 +0000 (01:32 +0200)]
fixed the buffer test.

15 years agoMerge branch 'master' of git://gitorious.org/git-python/david
Florian Apolloner [Sat, 31 May 2008 23:22:18 +0000 (01:22 +0200)]
Merge branch 'master' of git://gitorious.org/git-python/david

15 years agofixed http://gitorious.org/projects/git-python/repos/apollo13/comments#comment_105...
Florian Apolloner [Sat, 31 May 2008 23:21:17 +0000 (01:21 +0200)]
fixed  gitorious.org/projects/git-python/repos/apollo13/comments#comment_105 my mistake ;) I'll investigate this further, but I think we are on the safe side now...

15 years agotests: ensure cmd.execute can handle large output
David Aguilar [Sat, 31 May 2008 22:33:47 +0000 (15:33 -0700)]
tests: ensure cmd.execute can handle large output

This test case ensures that cmd.execute can always handle
large command outputs.  This test does so by reading a 700k
file into memory.

Signed-off-by: David Aguilar <davvid@gmail.com>
15 years agotests: allow "git version" test to pass on arbitrary git versions
David Aguilar [Sat, 31 May 2008 21:54:32 +0000 (14:54 -0700)]
tests: allow "git version" test to pass on arbitrary git versions

Sometimes people run development versions of git.
On these versions, "git version" returns, for example:

git version 1.5.4.rc2.1105.gfc5f2

The test_it_executes_git_to_shell_and_returns_result
testcase was updated to accept these versions of git.

Signed-off-by: David Aguilar <davvid@gmail.com>
15 years agoMerge branch 'master' of git://gitorious.org/git-python/david
Florian Apolloner [Sat, 31 May 2008 22:03:57 +0000 (00:03 +0200)]
Merge branch 'master' of git://gitorious.org/git-python/david

15 years agoreverted to the cleaner and safer proc.wait method instead of communicate.
Florian Apolloner [Sat, 31 May 2008 22:03:04 +0000 (00:03 +0200)]
reverted to the cleaner and safer proc.wait method instead of communicate.

15 years agotests: allow "git version" test to pass on arbitrary git versions
David Aguilar [Sat, 31 May 2008 21:54:32 +0000 (14:54 -0700)]
tests: allow "git version" test to pass on arbitrary git versions

Sometimes people run development versions of git.
On these versions, "git version" returns, for example:

git version 1.5.4.rc2.1105.gfc5f2

The test_it_executes_git_to_shell_and_returns_result
testcase was updated to accept these versions of git.

Signed-off-by: David Aguilar <davvid@gmail.com>
15 years agowhoops forgot cmd.
Michael Trier [Sat, 31 May 2008 21:55:04 +0000 (17:55 -0400)]
whoops forgot cmd.

15 years agorenamed gitter to cmd since that makes more sense. Fixed up changes doc.
Michael Trier [Sat, 31 May 2008 21:54:39 +0000 (17:54 -0400)]
renamed gitter to cmd since that makes more sense.  Fixed up changes doc.

15 years agodidn't work for git 1.5.3 ;)
Florian Apolloner [Sat, 31 May 2008 21:46:46 +0000 (23:46 +0200)]
didn't work for git 1.5.3 ;)

15 years agofixed last failing test, hopefully this works for all git versions...
Florian Apolloner [Sat, 31 May 2008 16:29:51 +0000 (18:29 +0200)]
fixed last failing test, hopefully this works for all git versions...

15 years agoreplaced another git_python with git
Florian Apolloner [Sat, 31 May 2008 16:25:02 +0000 (18:25 +0200)]
replaced another git_python with git

15 years agocouple fixes to setup
Michael Trier [Sat, 31 May 2008 01:20:19 +0000 (21:20 -0400)]
couple fixes to setup

15 years agoadded in changes to this release
Michael Trier [Sat, 31 May 2008 01:13:03 +0000 (21:13 -0400)]
added in changes to this release
.

15 years agorenamed git_python to git. Removed pop_key and replaced with dict.pop. Fixed up tests...
Michael Trier [Sat, 31 May 2008 01:01:44 +0000 (21:01 -0400)]
renamed git_python to git. Removed pop_key and replaced with dict.pop. Fixed up tests so they pass except for stderr test. Modified version information retrieval.

15 years agotests: keep temporary repos underneath test/repos
David Aguilar [Fri, 30 May 2008 01:30:53 +0000 (18:30 -0700)]
tests: keep temporary repos underneath test/repos

test_repo.py was creating directories in the literal
test/~/foo/... directory.

This commit replaces "~" with "repos".

Some minor whitespace issues were cleaned up as well.

Signed-off-by: David Aguilar <davvid@gmail.com>
15 years agogitignore: add ignores for common emacs and vim temporary files
David Aguilar [Fri, 30 May 2008 00:54:35 +0000 (17:54 -0700)]
gitignore: add ignores for common emacs and vim temporary files

vim saves temporary data in $FILENAME.swp.
emacs saves backups in $FILENAME~.

.gitignore now ignores all of these entries.

Signed-off-by: David Aguilar <davvid@gmail.com>
15 years agogit.py: make git_dir an optional parameter
David Aguilar [Fri, 30 May 2008 00:53:30 +0000 (17:53 -0700)]
git.py: make git_dir an optional parameter

git_dir is now optional in the constructor for git.Git.
Git now falls back to os.getcwd() when git_dir is not specified.

Furthermore, extra checks were added so that the git_dir
variable always points to the root of the worktree for
non-bare repositories.

Signed-off-by: David Aguilar <davvid@gmail.com>
15 years agotests: add utils.pop_key() testcases
David Aguilar [Fri, 30 May 2008 00:48:49 +0000 (17:48 -0700)]
tests: add utils.pop_key() testcases

This commit cleans up some unused variables in test_utils.py
and adds some testcases for utils.pop_key().

Signed-off-by: David Aguilar <davvid@gmail.com>
15 years agogit_python: add utils.pop_key to __init__.py
David Aguilar [Fri, 30 May 2008 00:47:53 +0000 (17:47 -0700)]
git_python: add utils.pop_key to __init__.py

This keeps the interface consistent by importing
utils.pop_key into the git_python namespace.

Signed-off-by: David Aguilar <davvid@gmail.com>
15 years agotests: add a test for the new with_raw_output mechanism
David Aguilar [Thu, 29 May 2008 09:19:18 +0000 (02:19 -0700)]
tests: add a test for the new with_raw_output mechanism

This test ensures that trailing whitespace is preserved
when git.foo( with_raw_output=True ) is called, and vice
versa.

Signed-off-by: David Aguilar <davvid@gmail.com>
15 years agogit.py: always strip trailing whitespace and add an option to not do so
David Aguilar [Thu, 29 May 2008 09:18:28 +0000 (02:18 -0700)]
git.py: always strip trailing whitespace and add an option to not do so

We now strip off any trailing whitespace.
We inhibit this behavior when git.foo( with_raw_output=True )
is called.

Signed-off-by: David Aguilar <davvid@gmail.com>
15 years agotests: add a test for the new with_stderr mechanism
David Aguilar [Thu, 29 May 2008 09:17:13 +0000 (02:17 -0700)]
tests: add a test for the new with_stderr mechanism

This test ensures that stderr is merged into stdout when
git.foo( with_stderr=True ) is called.

Signed-off-by: David Aguilar <davvid@gmail.com>
15 years agogit.py: add support for merging stderr into stdout
David Aguilar [Thu, 29 May 2008 09:16:28 +0000 (02:16 -0700)]
git.py: add support for merging stderr into stdout

When git.foo( with_stderr=True ) is called, stderr is returned
along with stdout in a merged stream.

Signed-off-by: David Aguilar <davvid@gmail.com>
15 years agotests: add a test for git.foo( with_exceptions=True )
David Aguilar [Thu, 29 May 2008 09:14:25 +0000 (02:14 -0700)]
tests: add a test for git.foo( with_exceptions=True )

This test ensures that a GitCommandError is raised when git
returns a non-zero exit status.

Signed-off-by: David Aguilar <davvid@gmail.com>
15 years agogit.py: add a with_exceptions keyword argument
David Aguilar [Thu, 29 May 2008 09:13:27 +0000 (02:13 -0700)]
git.py: add a with_exceptions keyword argument

When git.foo( with_exceptions=True ) is called a
GitCommandError is raised when the exit status is non-zero.

Signed-off-by: David Aguilar <davvid@gmail.com>
15 years agoerrors: add a GitCommandError class
David Aguilar [Thu, 29 May 2008 09:11:40 +0000 (02:11 -0700)]
errors: add a GitCommandError class

The next commit will raise GitCommandError when a flag is
passed to method_missing and the exit status is non-zero.

Signed-off-by: David Aguilar <davvid@gmail.com>
15 years agotests: add a git.foo( with_status=True ) testcase
David Aguilar [Thu, 29 May 2008 09:09:28 +0000 (02:09 -0700)]
tests: add a git.foo( with_status=True ) testcase

test_git.py now tests the new git.foo( with_status=True )
mechanism.

Signed-off-by: David Aguilar <davvid@gmail.com>
15 years agogit.py: add support for git.foo( with_status=True )
David Aguilar [Thu, 29 May 2008 09:07:41 +0000 (02:07 -0700)]
git.py: add support for git.foo( with_status=True )

Passing with_status to an arbitrary git command causes execute
to return (status_code, output) instead of the typical
returned output.

This is useful when callers need access to the exit status code.

Signed-off-by: David Aguilar <davvid@gmail.com>
15 years agotests: add a test for git.foo( istream=fh )
David Aguilar [Thu, 29 May 2008 09:03:18 +0000 (02:03 -0700)]
tests: add a test for git.foo( istream=fh )

This test runs the equivalent of:

"git hash-object < fixtures/cat_file_blob"

with the new istream mechanism and compares the computed hash.

Signed-off-by: David Aguilar <davvid@gmail.com>
15 years agogit.py: add support for passing in a stdin input stream
David Aguilar [Thu, 29 May 2008 08:59:38 +0000 (01:59 -0700)]
git.py: add support for passing in a stdin input stream

execute/method_missing now support:

fh = open('filename', 'r')
print git.foo( istream=fh )
fh.close()

The name "istream" was chosen so that it would not conflict
with any of the builtin git flags.  "stdin", for instance,
is used by git.

Signed-off-by: David Aguilar <davvid@gmail.com>
15 years agogit.py: always use "git foo" and never "git-foo"
David Aguilar [Thu, 29 May 2008 08:55:21 +0000 (01:55 -0700)]
git.py: always use "git foo" and never "git-foo"

gitsters on the git mailing list have been slowly deprecating
the usage of "git-foo" commands.  The preferred invocation
is "git foo".

Signed-off-by: David Aguilar <davvid@gmail.com>
15 years agoutils: add a pop_key helper function
David Aguilar [Thu, 29 May 2008 08:50:55 +0000 (01:50 -0700)]
utils: add a pop_key helper function

pop_key removes a value from a dictionary and it in one step.
This function will be used in the next integration.

Signed-off-by: David Aguilar <davvid@gmail.com>
15 years agogit.py: add support for a GIT_PYTHON_TRACE environment variable
David Aguilar [Thu, 29 May 2008 04:50:11 +0000 (21:50 -0700)]
git.py: add support for a GIT_PYTHON_TRACE environment variable

GIT_PYTHON_TRACE allows us to debug GitPython's usage of
git through the use of an environment variable.

This is preferred over a hard-coded print statement.

Signed-off-by: David Aguilar <davvid@gmail.com>
15 years agotests: update test_git.py to use the new single-character flag style
David Aguilar [Thu, 29 May 2008 04:32:32 +0000 (21:32 -0700)]
tests: update test_git.py to use the new single-character flag style

The previous commit changed the way transform_kwargs handles
single-character flags with arguments.  This commit updates the
testcase accordingly.

Signed-off-by: David Aguilar <davvid@gmail.com>
15 years agogit.py: properly handle single-character flags with arguments
David Aguilar [Thu, 29 May 2008 04:28:15 +0000 (21:28 -0700)]
git.py: properly handle single-character flags with arguments

"git diff -U5" is correct while "git diff -U 5" is not.
ditto for "git log -U5", "git commit -F/some/path", etc.

The original version of transform_kwargs was setting up the
command line arguments such that single-character flags with
arguments were not understood by git.

This changes transform_kwargs so that the flag and argument
are both part of the same string for single-character flags.

Signed-off-by: David Aguilar <davvid@gmail.com>
15 years agogitignore: ignore eggs, .pyo's and /build
David Aguilar [Thu, 29 May 2008 04:25:15 +0000 (21:25 -0700)]
gitignore: ignore eggs, .pyo's and /build

This commit sets up .gitignore so that it properly ignores both
.pyo and .pyc files.

The egg path was updated so that it is prepended with a "/".

"/build" was added to the list of ignored paths since it is
customary for setuptools to use that directory for builds.

Signed-off-by: David Aguilar <davvid@gmail.com>
15 years agoMerge git://gitorious.org/git-python/apollo13
Michael Trier [Mon, 26 May 2008 14:51:07 +0000 (10:51 -0400)]
Merge git://gitorious.org/git-python/apollo13

15 years agoFixed up problem where name doesn't exist on root of tree.
Michael Trier [Mon, 26 May 2008 02:19:13 +0000 (22:19 -0400)]
Fixed up problem where name doesn't exist on root of tree.

15 years agoremoved stupid print
Florian Apolloner [Thu, 22 May 2008 21:12:48 +0000 (23:12 +0200)]
removed stupid print

15 years agouse ~/foo instead of /foo for repo.
Florian Apolloner [Thu, 22 May 2008 20:11:22 +0000 (22:11 +0200)]
use ~/foo instead of /foo for repo.

15 years agofixed errors in the test, two permission errors remaining, thx to mock?!?!
Florian Apolloner [Wed, 21 May 2008 17:39:55 +0000 (19:39 +0200)]
fixed errors in the test, two permission errors remaining, thx to mock?!?!
Also removed the shell_escape tests...

15 years agoremoved some unused stuff
Florian Apolloner [Tue, 20 May 2008 21:43:56 +0000 (23:43 +0200)]
removed some unused stuff

15 years agomade subprocess not use a shell...
Florian Apolloner [Tue, 20 May 2008 21:26:06 +0000 (23:26 +0200)]
made subprocess not use a shell...

15 years agoremoved some more spaces
Florian Apolloner [Tue, 20 May 2008 20:27:42 +0000 (22:27 +0200)]
removed some more spaces

15 years agofixed incorrect test import
Michael Trier [Tue, 20 May 2008 15:33:08 +0000 (11:33 -0400)]
fixed incorrect test import

15 years agoadded /me as author
Florian Apolloner [Tue, 20 May 2008 14:49:48 +0000 (16:49 +0200)]
added /me as author

15 years agoremoved unneeded spaces
Florian Apolloner [Tue, 20 May 2008 13:56:38 +0000 (15:56 +0200)]
removed unneeded spaces

15 years agoadded .gitignore to ignore *.pyc files and the egg-info stuff.
Florian Apolloner [Tue, 20 May 2008 13:48:12 +0000 (15:48 +0200)]
added .gitignore to ignore *.pyc files and the egg-info stuff.

15 years agoMissing os import. Thanks apollo13.
Michael Trier [Tue, 20 May 2008 13:10:39 +0000 (09:10 -0400)]
Missing os import.  Thanks apollo13.

15 years agoadded in note about how to handle date time information. Fixed up repo tests for...
Michael Trier [Sun, 18 May 2008 20:56:55 +0000 (16:56 -0400)]
added in note about how to handle date time information.  Fixed up repo tests for the removal of the shared option.