Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.
/ python-gitpath Public archive
forked from maxnoe/python-gitpath

A small python module to make working in git repos easier

License

Notifications You must be signed in to change notification settings

ruxi/python-gitpath

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gitpath

A few functions to make working with python inside git repos easier.

path handling

gitpath.root() returns the absolute path of the repository root directory

gitpath.abspath(_rel_path_) returns an absolute path for a path given relative to the root directory, so assuming, this repo resites in /home/maxnoe/python-gitpath:

import gitpath

print(gitpath.abspath('setup.py'))

Will give you: /home/maxnoe/python-gitpath/setup.py


Installation

pip install git+https://github.com/ruxi/python-gitpath.git

About

A small python module to make working in git repos easier

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%