fastgit 0.0.4__tar.gz → 0.0.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fastgit
3
- Version: 0.0.4
3
+ Version: 0.0.5
4
4
  Summary: Use git from python, fast
5
5
  Author-email: Jeremy Howard <github@jhoward.fastmail.fm>
6
6
  License: Apache-2.0
@@ -0,0 +1,3 @@
1
+ __version__ = "0.0.5"
2
+
3
+ from .core import *
@@ -10,6 +10,7 @@ d = { 'settings': { 'branch': 'main',
10
10
  'fastgit.core.Git.__getattr__': ('core.html#git.__getattr__', 'fastgit/core.py'),
11
11
  'fastgit.core.Git.__init__': ('core.html#git.__init__', 'fastgit/core.py'),
12
12
  'fastgit.core.Git.exists': ('core.html#git.exists', 'fastgit/core.py'),
13
+ 'fastgit.core.Git.head_sha': ('core.html#git.head_sha', 'fastgit/core.py'),
13
14
  'fastgit.core.Git.last_commit': ('core.html#git.last_commit', 'fastgit/core.py'),
14
15
  'fastgit.core.Git.top': ('core.html#git.top', 'fastgit/core.py'),
15
16
  'fastgit.core.callgit': ('core.html#callgit', 'fastgit/core.py'),
@@ -1,4 +1,6 @@
1
- """Implementation of fastgit"""
1
+ """Implementation of fastgit
2
+
3
+ Docs: https://AnswerDotAI.github.io/fastgitcore.html.md"""
2
4
 
3
5
  # AUTOGENERATED! DO NOT EDIT! File to edit: ../nbs/00_core.ipynb.
4
6
 
@@ -49,6 +51,8 @@ class Git:
49
51
 
50
52
  @property
51
53
  def exists(self): return self.top() is not None
54
+ @property
55
+ def head_sha(self): return self.rev_parse('HEAD', mute_errors=True)
52
56
 
53
57
  # %% ../nbs/00_core.ipynb #b688e74b
54
58
  @patch(as_prop=True)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fastgit
3
- Version: 0.0.4
3
+ Version: 0.0.5
4
4
  Summary: Use git from python, fast
5
5
  Author-email: Jeremy Howard <github@jhoward.fastmail.fm>
6
6
  License: Apache-2.0
@@ -28,4 +28,6 @@ version = {attr = "fastgit.__version__"}
28
28
  include = ["fastgit"]
29
29
 
30
30
  [tool.nbdev]
31
+ allowed_metadata_keys = ['solveit']
32
+ allowed_cell_metadata_keys = ['solveit_ai']
31
33
  custom_sidebar = false
@@ -1,3 +0,0 @@
1
- __version__ = "0.0.4"
2
-
3
- from .core import *
File without changes
File without changes
File without changes
File without changes