git-sim 0.3.1__tar.gz → 0.3.3__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.
Files changed (44) hide show
  1. {git-sim-0.3.1/git_sim.egg-info → git-sim-0.3.3}/PKG-INFO +1 -1
  2. git-sim-0.3.3/git_sim/__init__.py +1 -0
  3. {git-sim-0.3.1 → git-sim-0.3.3}/git_sim/merge.py +1 -1
  4. git-sim-0.3.3/git_sim/settings.py +48 -0
  5. {git-sim-0.3.1 → git-sim-0.3.3/git_sim.egg-info}/PKG-INFO +1 -1
  6. {git-sim-0.3.1 → git-sim-0.3.3}/git_sim.egg-info/requires.txt +1 -1
  7. {git-sim-0.3.1 → git-sim-0.3.3}/setup.py +1 -1
  8. git-sim-0.3.1/git_sim/__init__.py +0 -1
  9. git-sim-0.3.1/git_sim/settings.py +0 -48
  10. {git-sim-0.3.1 → git-sim-0.3.3}/LICENSE +0 -0
  11. {git-sim-0.3.1 → git-sim-0.3.3}/MANIFEST.in +0 -0
  12. {git-sim-0.3.1 → git-sim-0.3.3}/README.md +0 -0
  13. {git-sim-0.3.1 → git-sim-0.3.3}/git_sim/__main__.py +0 -0
  14. {git-sim-0.3.1 → git-sim-0.3.3}/git_sim/add.py +0 -0
  15. {git-sim-0.3.1 → git-sim-0.3.3}/git_sim/animations.py +0 -0
  16. {git-sim-0.3.1 → git-sim-0.3.3}/git_sim/branch.py +0 -0
  17. {git-sim-0.3.1 → git-sim-0.3.3}/git_sim/checkout.py +0 -0
  18. {git-sim-0.3.1 → git-sim-0.3.3}/git_sim/cherrypick.py +0 -0
  19. {git-sim-0.3.1 → git-sim-0.3.3}/git_sim/clean.py +0 -0
  20. {git-sim-0.3.1 → git-sim-0.3.3}/git_sim/clone.py +0 -0
  21. {git-sim-0.3.1 → git-sim-0.3.3}/git_sim/commands.py +0 -0
  22. {git-sim-0.3.1 → git-sim-0.3.3}/git_sim/commit.py +0 -0
  23. {git-sim-0.3.1 → git-sim-0.3.3}/git_sim/enums.py +0 -0
  24. {git-sim-0.3.1 → git-sim-0.3.3}/git_sim/fetch.py +0 -0
  25. {git-sim-0.3.1 → git-sim-0.3.3}/git_sim/git_sim_base_command.py +0 -0
  26. {git-sim-0.3.1 → git-sim-0.3.3}/git_sim/log.py +0 -0
  27. {git-sim-0.3.1 → git-sim-0.3.3}/git_sim/logo.png +0 -0
  28. {git-sim-0.3.1 → git-sim-0.3.3}/git_sim/mv.py +0 -0
  29. {git-sim-0.3.1 → git-sim-0.3.3}/git_sim/pull.py +0 -0
  30. {git-sim-0.3.1 → git-sim-0.3.3}/git_sim/push.py +0 -0
  31. {git-sim-0.3.1 → git-sim-0.3.3}/git_sim/rebase.py +0 -0
  32. {git-sim-0.3.1 → git-sim-0.3.3}/git_sim/reset.py +0 -0
  33. {git-sim-0.3.1 → git-sim-0.3.3}/git_sim/restore.py +0 -0
  34. {git-sim-0.3.1 → git-sim-0.3.3}/git_sim/revert.py +0 -0
  35. {git-sim-0.3.1 → git-sim-0.3.3}/git_sim/rm.py +0 -0
  36. {git-sim-0.3.1 → git-sim-0.3.3}/git_sim/stash.py +0 -0
  37. {git-sim-0.3.1 → git-sim-0.3.3}/git_sim/status.py +0 -0
  38. {git-sim-0.3.1 → git-sim-0.3.3}/git_sim/switch.py +0 -0
  39. {git-sim-0.3.1 → git-sim-0.3.3}/git_sim/tag.py +0 -0
  40. {git-sim-0.3.1 → git-sim-0.3.3}/git_sim.egg-info/SOURCES.txt +0 -0
  41. {git-sim-0.3.1 → git-sim-0.3.3}/git_sim.egg-info/dependency_links.txt +0 -0
  42. {git-sim-0.3.1 → git-sim-0.3.3}/git_sim.egg-info/entry_points.txt +0 -0
  43. {git-sim-0.3.1 → git-sim-0.3.3}/git_sim.egg-info/top_level.txt +0 -0
  44. {git-sim-0.3.1 → git-sim-0.3.3}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: git-sim
3
- Version: 0.3.1
3
+ Version: 0.3.3
4
4
  Summary: Simulate Git commands on your own repos by generating an image (default) or video visualization depicting the command's behavior.
5
5
  Home-page: https://initialcommit.com/tools/git-sim
6
6
  Author: Jacob Stopak
@@ -0,0 +1 @@
1
+ __version__ = "0.3.3"
@@ -60,7 +60,7 @@ class Merge(GitSimBaseCommand):
60
60
  head_commit = self.get_commit()
61
61
  branch_commit = self.get_commit(self.branch)
62
62
 
63
- if not self.is_remote_tracking_branch(self.branch):
63
+ if self.branch not in self.get_remote_tracking_branches():
64
64
  if self.branch in self.repo.git.branch("--contains", head_commit.hexsha):
65
65
  self.ff = True
66
66
  else:
@@ -0,0 +1,48 @@
1
+ import pathlib
2
+ from typing import List, Union
3
+
4
+ from pydantic_settings import BaseSettings
5
+
6
+ from git_sim.enums import StyleOptions, ColorByOptions, ImgFormat, VideoFormat
7
+
8
+
9
+ class Settings(BaseSettings):
10
+ allow_no_commits: bool = False
11
+ animate: bool = False
12
+ auto_open: bool = True
13
+ n_default: int = 5
14
+ n: int = 5
15
+ files: Union[List[pathlib.Path], None] = None
16
+ hide_first_tag: bool = False
17
+ img_format: ImgFormat = ImgFormat.JPG
18
+ INFO_STRING: str = "Simulating: git"
19
+ light_mode: bool = False
20
+ transparent_bg: bool = False
21
+ logo: pathlib.Path = pathlib.Path(__file__).parent.resolve() / "logo.png"
22
+ low_quality: bool = False
23
+ max_branches_per_commit: int = 1
24
+ max_tags_per_commit: int = 1
25
+ media_dir: pathlib.Path = pathlib.Path().cwd()
26
+ outro_bottom_text: str = "Learn more at initialcommit.com"
27
+ outro_top_text: str = "Thanks for using Initial Commit!"
28
+ reverse: bool = False
29
+ show_intro: bool = False
30
+ show_outro: bool = False
31
+ speed: float = 1.5
32
+ title: str = "Git-Sim, by initialcommit.com"
33
+ video_format: VideoFormat = VideoFormat.MP4
34
+ stdout: bool = False
35
+ output_only_path: bool = False
36
+ quiet: bool = False
37
+ invert_branches: bool = False
38
+ hide_merged_branches: bool = False
39
+ all: bool = False
40
+ color_by: Union[ColorByOptions, None] = None
41
+ highlight_commit_messages: bool = False
42
+ style: Union[StyleOptions, None] = StyleOptions.CLEAN
43
+
44
+ class Config:
45
+ env_prefix = "git_sim_"
46
+
47
+
48
+ settings = Settings()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: git-sim
3
- Version: 0.3.1
3
+ Version: 0.3.3
4
4
  Summary: Simulate Git commands on your own repos by generating an image (default) or video visualization depicting the command's behavior.
5
5
  Home-page: https://initialcommit.com/tools/git-sim
6
6
  Author: Jacob Stopak
@@ -2,5 +2,5 @@ gitpython
2
2
  manim
3
3
  opencv-python-headless
4
4
  typer
5
- pydantic
5
+ pydantic_settings
6
6
  git-dummy
@@ -26,7 +26,7 @@ setuptools.setup(
26
26
  "manim",
27
27
  "opencv-python-headless",
28
28
  "typer",
29
- "pydantic",
29
+ "pydantic_settings",
30
30
  "git-dummy",
31
31
  ],
32
32
  keywords="git sim simulation simulate git-simulate git-simulation git-sim manim animation gitanimation image video dryrun dry-run",
@@ -1 +0,0 @@
1
- __version__ = "0.3.1"
@@ -1,48 +0,0 @@
1
- import pathlib
2
- from typing import List, Union
3
-
4
- from pydantic import BaseSettings
5
-
6
- from git_sim.enums import StyleOptions, ColorByOptions, ImgFormat, VideoFormat
7
-
8
-
9
- class Settings(BaseSettings):
10
- allow_no_commits = False
11
- animate = False
12
- auto_open = True
13
- n_default = 5
14
- n = 5
15
- files: Union[List[pathlib.Path], None] = None
16
- hide_first_tag = False
17
- img_format: ImgFormat = ImgFormat.JPG
18
- INFO_STRING = "Simulating: git"
19
- light_mode = False
20
- transparent_bg = False
21
- logo = pathlib.Path(__file__).parent.resolve() / "logo.png"
22
- low_quality = False
23
- max_branches_per_commit = 1
24
- max_tags_per_commit = 1
25
- media_dir = pathlib.Path().cwd()
26
- outro_bottom_text = "Learn more at initialcommit.com"
27
- outro_top_text = "Thanks for using Initial Commit!"
28
- reverse = False
29
- show_intro = False
30
- show_outro = False
31
- speed = 1.5
32
- title = "Git-Sim, by initialcommit.com"
33
- video_format: VideoFormat = VideoFormat.MP4
34
- stdout = False
35
- output_only_path = False
36
- quiet = False
37
- invert_branches = False
38
- hide_merged_branches = False
39
- all = False
40
- color_by: Union[ColorByOptions, None] = None
41
- highlight_commit_messages = False
42
- style: Union[StyleOptions, None] = StyleOptions.CLEAN
43
-
44
- class Config:
45
- env_prefix = "git_sim_"
46
-
47
-
48
- settings = Settings()
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes