gabrycina / git-python-rewrite

Git but is rewritten in python
31 stars 15 forks source link

add repo_find function #14 #15

Open i0nut02 opened 5 months ago

i0nut02 commented 5 months ago

it doesn't work for paths like /p1/p2/../p3 and /p1/p2/.., but i think that we don't need this feature for now.

isnotJack commented 5 months ago

Good implementation of take_parent_dir! The previous approach "parent = os.path.realpath(os.path.join(path, ".."))" was quite straightforward, but this one is more elegant although it adds some complexity to the algorithm.