We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6ccf55 commit 5ffc9dfCopy full SHA for 5ffc9df
1 file changed
commitizen/git.py
@@ -1,4 +1,5 @@
1
import os
2
+from pathlib import Path
3
from tempfile import NamedTemporaryFile
4
from typing import Optional, List
5
@@ -55,3 +56,8 @@ def get_all_tags() -> Optional[List[str]]:
55
56
if c.err:
57
return []
58
return [tag.strip() for tag in c.out.split("\n") if tag.strip()]
59
+
60
61
+def find_git_project_root() -> Path:
62
+ c = cmd.run("git rev-parse --show-toplevel")
63
+ return Path(c.out)
0 commit comments