Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite3e2c8c

Browse files
committed
Corrected a bunch of whitespace that makes some folks crazy. Added Sebastian to the AUTHORS file.
1 parentacb0fa8 commite3e2c8c

35 files changed

+155
-154
lines changed

‎AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ Contributors are:
1010
-Steve Frécinaux <code _at_ istique.net>
1111
-Kai Lautaportti <kai _at_ lautaportti.fi>
1212
-Paul Sowden <paul _at_ idontsmoke.co.uk>
13+
-Sebastian Thiel http://www.linkedin.com/in/sebastianthiel
1314

1415
Portions derived from other open source works and are clearly marked.

‎LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (C) 2008, 2009 Michael Trier and contributors
1+
Copyright (C) 2008-2010 Michael Trier and contributors
22
All rights reserved.
33

44
Redistribution and use in source and binary forms, with or without

‎README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ REQUIREMENTS
2323
INSTALL
2424
=======
2525

26-
python setup.py install
26+
python setup.py install
2727

2828
SOURCE
2929
======

‎TODO

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,32 @@ TODO
44

55
General
66
-------
7-
* Classes requiring repo actually only need the git command - this should be
7+
* Classes requiring repo actually only need the git command - this should be
88
changed to limit their access level and make things a little safer.
9-
* Check for correct usage of id, ref and hexsha and define their meanings,
10-
currently its not so clear what id may be in cases or not - afaik its usually
9+
* Check for correct usage of id, ref and hexsha and define their meanings,
10+
currently its not so clear what id may be in cases or not - afaik its usually
1111
a sha or ref unless cat-file is used where it must be a sha
1212
* Derive all Object like items like types such as Commit, Tag(Object), Tree, Blob
13-
from a common base. This allows to easily add __eq__, __ne__, __hash__ method
13+
from a common base. This allows to easily add __eq__, __ne__, __hash__ method
1414
to make their use more comfortable and reduces code duplication.
1515
* References like Tag(Reference), Heads and Remotes should have an own Base class
16-
* Optimize type size by adding __slots__ ( at least ), which would also make sure
16+
* Optimize type size by adding __slots__ ( at least ), which would also make sure
1717
no one accidentally adds attributes to classes.
1818
* Add more performance tests, see branch "performance_testing"
1919

2020
Configuration
2121
-------------
22-
* Native configuration handling, ideally without using git-config for it to keep
22+
* Native configuration handling, ideally without using git-config for it to keep
2323
handling fast
24-
24+
2525
Docs
2626
----
2727
Overhaul docs - check examples, check looks, improve existing docs
2828

2929
Remotes
3030
-------
31-
* Remote handling should be rather easy to implement as it is 'just' another
32-
type of reference. It will be more work to do it right and allow convenient
31+
* Remote handling should be rather easy to implement as it is 'just' another
32+
type of reference. It will be more work to do it right and allow convenient
3333
access to the most common operations on remotes though.
3434

3535
Submodules

‎doc/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
# General information about the project.
4545
project=u'GitPython'
46-
copyright=u'Copyright (C) 2008, 2009 Michael Trier and contributors'
46+
copyright=u'Copyright (C) 2008-2010 Michael Trier and contributors'
4747

4848
# The version info for the project you're documenting, acts as replacement for
4949
# |version| and |release|, also used in various other places throughout the

‎lib/git/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# __init__.py
2-
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
2+
# Copyright (C) 2008-2010 Michael Trier (mtrier@gmail.com) and contributors
33
#
44
# This module is part of GitPython and is released under
55
# the BSD License: http://www.opensource.org/licenses/bsd-license.php

‎lib/git/actor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# actor.py
2-
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
2+
# Copyright (C) 2008-2010 Michael Trier (mtrier@gmail.com) and contributors
33
#
44
# This module is part of GitPython and is released under
55
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
66

77
importre
88

99
classActor(object):
10-
"""Actors hold information about a person acting on the repository. They
11-
can be committers and authors or anything with a name and an email as
10+
"""Actors hold information about a person acting on the repository. They
11+
can be committers and authors or anything with a name and an email as
1212
mentioned in the git log entries."""
1313
def__init__(self,name,email):
1414
self.name=name

‎lib/git/blob.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# blob.py
2-
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
2+
# Copyright (C) 2008-2010 Michael Trier (mtrier@gmail.com) and contributors
33
#
44
# This module is part of GitPython and is released under
55
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
@@ -49,7 +49,7 @@ def size(self):
4949
5050
Returns
5151
int
52-
52+
5353
NOTE
5454
The size will be cached after the first access
5555
"""
@@ -64,7 +64,7 @@ def data(self):
6464
6565
Returns
6666
str
67-
67+
6868
NOTE
6969
The data will be cached after the first access.
7070
"""
@@ -78,7 +78,7 @@ def mime_type(self):
7878
7979
Returns
8080
str
81-
81+
8282
NOTE
8383
Defaults to 'text/plain' in case the actual file type is unknown.
8484
"""
@@ -102,7 +102,7 @@ def blame(cls, repo, commit, file):
102102
103103
Returns
104104
list: [git.Commit, list: [<line>]]
105-
A list of tuples associating a Commit object with a list of lines that
105+
A list of tuples associating a Commit object with a list of lines that
106106
changed within the given commit. The Commit objects will be given in order
107107
of appearance.
108108
"""

‎lib/git/cmd.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# cmd.py
2-
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
2+
# Copyright (C) 2008-2010 Michael Trier (mtrier@gmail.com) and contributors
33
#
44
# This module is part of GitPython and is released under
55
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
@@ -23,32 +23,32 @@
2323
classGit(object):
2424
"""
2525
The Git class manages communication with the Git binary.
26-
26+
2727
It provides a convenient interface to calling the Git binary, such as in::
28-
28+
2929
g = Git( git_dir )
3030
g.init() # calls 'git init' program
3131
rval = g.ls_files()# calls 'git ls-files' program
32-
32+
3333
``Debugging``
34-
Set the GIT_PYTHON_TRACE environment variable print each invocation
34+
Set the GIT_PYTHON_TRACE environment variable print each invocation
3535
of the command to stdout.
3636
Set its value to 'full' to see details about the returned values.
3737
"""
3838
def__init__(self,git_dir=None):
3939
"""
4040
Initialize this instance with:
41-
41+
4242
``git_dir``
43-
Git directory we should work in. If None, we always work in the current
43+
Git directory we should work in. If None, we always work in the current
4444
directory as returned by os.getcwd()
4545
"""
4646
super(Git,self).__init__()
4747
self.git_dir=git_dir
4848

4949
def__getattr__(self,name):
5050
"""
51-
A convenience method as it allows to call the command as if it was
51+
A convenience method as it allows to call the command as if it was
5252
an object.
5353
Returns
5454
Callable object that will execute call _call_process with your arguments.
@@ -99,15 +99,15 @@ def execute(self, command,
9999
Whether to avoid stripping off trailing whitespace.
100100
101101
Returns::
102-
102+
103103
str(output) # extended_output = False (Default)
104104
tuple(int(status), str(stdout), str(stderr)) # extended_output = True
105-
105+
106106
Raise
107-
GitCommandError
108-
107+
GitCommandError
108+
109109
NOTE
110-
If you add additional keyword arguments to the signature of this method,
110+
If you add additional keyword arguments to the signature of this method,
111111
you must update the execute_kwargs tuple housed in this module.
112112
"""
113113
ifGIT_PYTHON_TRACEandnotGIT_PYTHON_TRACE=='full':

‎lib/git/commit.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# commit.py
2-
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
2+
# Copyright (C) 2008-2010 Michael Trier (mtrier@gmail.com) and contributors
33
#
44
# This module is part of GitPython and is released under
55
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
@@ -16,16 +16,16 @@
1616
classCommit(LazyMixin):
1717
"""
1818
Wraps a git Commit object.
19-
20-
This class will act lazily on some of its attributes and will query the
19+
20+
This class will act lazily on some of its attributes and will query the
2121
value on demand only if it involves calling the git binary.
2222
"""
2323
def__init__(self,repo,id,tree=None,author=None,authored_date=None,
2424
committer=None,committed_date=None,message=None,parents=None):
2525
"""
26-
Instantiate a new Commit. All keyword arguments taking None as default will
27-
be implicitly set if id names a valid sha.
28-
26+
Instantiate a new Commit. All keyword arguments taking None as default will
27+
be implicitly set if id names a valid sha.
28+
2929
The parameter documentation indicates the type of the argument after a colon ':'.
3030
3131
``id``
@@ -75,7 +75,7 @@ def __init__(self, repo, id, tree=None, author=None, authored_date=None,
7575

7676
def__bake__(self):
7777
"""
78-
Called by LazyMixin superclass when the first uninitialized member needs
78+
Called by LazyMixin superclass when the first uninitialized member needs
7979
to be set as it is queried.
8080
"""
8181
temp=Commit.find_all(self.repo,self.id,max_count=1)[0]
@@ -133,7 +133,7 @@ def find_all(cls, repo, ref, path='', **kwargs):
133133
is the ref from which to begin (SHA1 or name)
134134
135135
``path``
136-
is an optinal path, if set only Commits that include the path
136+
is an optinal path, if set only Commits that include the path
137137
will be considered
138138
139139
``kwargs``
@@ -210,9 +210,9 @@ def diff(cls, repo, a, b=None, paths=None):
210210
211211
Returns
212212
git.Diff[]::
213-
213+
214214
between tree and the index if only a is given
215-
between two trees if a and b are given and are commits
215+
between two trees if a and b are given and are commits
216216
"""
217217
paths=pathsor []
218218

@@ -234,7 +234,7 @@ def diffs(self):
234234
"""
235235
Returns
236236
git.Diff[]
237-
Diffs between this commit and its first parent or all changes if this
237+
Diffs between this commit and its first parent or all changes if this
238238
commit is the first commit and has no parent.
239239
"""
240240
ifnotself.parents:
@@ -252,9 +252,9 @@ def diffs(self):
252252
@property
253253
defstats(self):
254254
"""
255-
Create a git stat from changes between this commit and its first parent
255+
Create a git stat from changes between this commit and its first parent
256256
or from all changes done if this is the very first commit.
257-
257+
258258
Return
259259
git.Stats
260260
"""

‎lib/git/diff.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# diff.py
2-
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
2+
# Copyright (C) 2008-2010 Michael Trier (mtrier@gmail.com) and contributors
33
#
44
# This module is part of GitPython and is released under
55
# the BSD License: http://www.opensource.org/licenses/bsd-license.php

‎lib/git/errors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# errors.py
2-
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
2+
# Copyright (C) 2008-2010 Michael Trier (mtrier@gmail.com) and contributors
33
#
44
# This module is part of GitPython and is released under
55
# the BSD License: http://www.opensource.org/licenses/bsd-license.php

‎lib/git/head.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# head.py
2-
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
2+
# Copyright (C) 2008-2010 Michael Trier (mtrier@gmail.com) and contributors
33
#
44
# This module is part of GitPython and is released under
55
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
@@ -16,10 +16,10 @@ class Head(object):
1616
>>> repo = Repo("/path/to/repo")
1717
>>> head = repo.heads[0]
1818
19-
>>> head.name
19+
>>> head.name
2020
'master'
2121
22-
>>> head.commit
22+
>>> head.commit
2323
<git.Commit "1c09f116cbc2cb4100fb6935bb162daa4723f455">
2424
2525
>>> head.commit.id
@@ -53,7 +53,7 @@ def find_all(cls, repo, **kwargs):
5353
5454
Returns
5555
git.Head[]
56-
56+
5757
List is sorted by committerdate
5858
"""
5959

@@ -96,7 +96,7 @@ def from_string(cls, repo, line):
9696
is the formatted head information
9797
9898
Format::
99-
99+
100100
name: [a-zA-Z_/]+
101101
<null byte>
102102
id: [0-9A-Fa-f]{40}

‎lib/git/lazy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# lazy.py
2-
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
2+
# Copyright (C) 2008-2010 Michael Trier (mtrier@gmail.com) and contributors
33
#
44
# This module is part of GitPython and is released under
55
# the BSD License: http://www.opensource.org/licenses/bsd-license.php

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp