-
-
Notifications
You must be signed in to change notification settings - Fork 403
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
11 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,19 +33,23 @@ Like Linux, Git treats filenames as arbitrary bytestrings. There is no prescribe | |
encoding for these strings, and although it is fairly common to use UTF-8, any | ||
raw byte strings are supported. | ||
|
||
For this reason, Dulwich internally treats git-based filenames as bytestrings. It is up | ||
to the Dulwich API user to encode and decode them if necessary. | ||
For this reason, Dulwich internally treats git-based filenames as bytestrings. | ||
It is up to the Dulwich API user to encode and decode them if necessary. In the | ||
future, the porcelain may accept unicode strings and convert them to bytestrings | ||
as necessary on the fly (using sys.getfilesystemencoding()). | ||
|
||
* git-repository related filenames: bytes | ||
* object sha1 digests (20 bytes long): bytes | ||
* object sha1 hexdigests (40 bytes long): str (bytestrings on python2, strings on python3) | ||
* object sha1 hexdigests (40 bytes long): str (bytestrings on python2, strings | ||
on python3) | ||
|
||
Merge requests | ||
-------------- | ||
Please either send pull requests to the maintainer ([email protected]) or create new pull | ||
requests on GitHub. | ||
Please either send pull requests to the maintainer ([email protected]) or create | ||
new pull requests on GitHub. | ||
|
||
Licensing | ||
--------- | ||
All contributions should be made under the same license that Dulwich itself comes under: | ||
both Apache License, version 2.0 or later and GNU General Public License, version 2.0 or later. | ||
All contributions should be made under the same license that Dulwich itself | ||
comes under: both Apache License, version 2.0 or later and GNU General Public | ||
License, version 2.0 or later. |