Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F16924655
config.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
273 B
Subscribers
None
config.py
View Options
#!/usr/bin/python
# Read the config file for a git repository.
#
# Example usage:
# python examples/config.py
from
dulwich.repo
import
Repo
repo
=
Repo
(
"."
)
config
=
repo
.
get_config
()
print
(
config
.
get
(
"core"
,
"filemode"
))
print
(
config
.
get
((
"remote"
,
"origin"
),
"url"
))
File Metadata
Details
Attached
Mime Type
text/x-python
Expires
Sat, Mar 21, 3:46 PM (5 d, 1 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3389010
Attached To
rPPDW python3-dulwich packaging
Event Timeline
Log In to Comment