@@ -526,6 +526,13 @@ <h1 class="title">Module <code>continuous_delivery_scripts.utils.git_helpers</co
526
526
if self.is_dirty():
527
527
self.repo.git.clean(force=True, x=True, d=True)
528
528
529
+ def stash(self) -> None:
530
+ """Stashes the repository.
531
+
532
+ Performs a stash.
533
+ """
534
+ self.repo.git.stash(all=True, quiet=True)
535
+
529
536
def configure_for_github(self) -> None:
530
537
"""Reconfigures the repository.
531
538
@@ -999,6 +1006,7 @@ <h3>Inherited members</h3>
999
1006
< li > < code > < a title ="continuous_delivery_scripts.utils.git_helpers.GitWrapper.root " href ="#continuous_delivery_scripts.utils.git_helpers.GitWrapper.root "> root</ a > </ code > </ li >
1000
1007
< li > < code > < a title ="continuous_delivery_scripts.utils.git_helpers.GitWrapper.set_remote_url " href ="#continuous_delivery_scripts.utils.git_helpers.GitWrapper.set_remote_url "> set_remote_url</ a > </ code > </ li >
1001
1008
< li > < code > < a title ="continuous_delivery_scripts.utils.git_helpers.GitWrapper.set_upstream_branch " href ="#continuous_delivery_scripts.utils.git_helpers.GitWrapper.set_upstream_branch "> set_upstream_branch</ a > </ code > </ li >
1009
+ < li > < code > < a title ="continuous_delivery_scripts.utils.git_helpers.GitWrapper.stash " href ="#continuous_delivery_scripts.utils.git_helpers.GitWrapper.stash "> stash</ a > </ code > </ li >
1002
1010
< li > < code > < a title ="continuous_delivery_scripts.utils.git_helpers.GitWrapper.uncommitted_changes " href ="#continuous_delivery_scripts.utils.git_helpers.GitWrapper.uncommitted_changes "> uncommitted_changes</ a > </ code > </ li >
1003
1011
</ ul >
1004
1012
</ li >
@@ -1552,6 +1560,13 @@ <h2 id="args">Args</h2>
1552
1560
if self.is_dirty():
1553
1561
self.repo.git.clean(force=True, x=True, d=True)
1554
1562
1563
+ def stash(self) -> None:
1564
+ """Stashes the repository.
1565
+
1566
+ Performs a stash.
1567
+ """
1568
+ self.repo.git.stash(all=True, quiet=True)
1569
+
1555
1570
def configure_for_github(self) -> None:
1556
1571
"""Reconfigures the repository.
1557
1572
@@ -2867,6 +2882,24 @@ <h2 id="args">Args</h2>
2867
2882
self.repo.git.branch("--set-upstream-to", self.get_remote_branch(branch_name))</ code > </ pre >
2868
2883
</ details >
2869
2884
</ dd >
2885
+ < dt id ="continuous_delivery_scripts.utils.git_helpers.GitWrapper.stash "> < code class ="name flex ">
2886
+ < span > def < span class ="ident "> stash</ span > </ span > (< span > self) ‑> NoneType</ span >
2887
+ </ code > </ dt >
2888
+ < dd >
2889
+ < div class ="desc "> < p > Stashes the repository.</ p >
2890
+ < p > Performs a stash.</ p > </ div >
2891
+ < details class ="source ">
2892
+ < summary >
2893
+ < span > Expand source code</ span >
2894
+ </ summary >
2895
+ < pre > < code class ="python "> def stash(self) -> None:
2896
+ """Stashes the repository.
2897
+
2898
+ Performs a stash.
2899
+ """
2900
+ self.repo.git.stash(all=True, quiet=True)</ code > </ pre >
2901
+ </ details >
2902
+ </ dd >
2870
2903
</ dl >
2871
2904
</ dd >
2872
2905
< dt id ="continuous_delivery_scripts.utils.git_helpers.LocalProjectRepository "> < code class ="flex name class ">
@@ -2969,6 +3002,7 @@ <h3>Inherited members</h3>
2969
3002
< li > < code > < a title ="continuous_delivery_scripts.utils.git_helpers.GitWrapper.root " href ="#continuous_delivery_scripts.utils.git_helpers.GitWrapper.root "> root</ a > </ code > </ li >
2970
3003
< li > < code > < a title ="continuous_delivery_scripts.utils.git_helpers.GitWrapper.set_remote_url " href ="#continuous_delivery_scripts.utils.git_helpers.GitWrapper.set_remote_url "> set_remote_url</ a > </ code > </ li >
2971
3004
< li > < code > < a title ="continuous_delivery_scripts.utils.git_helpers.GitWrapper.set_upstream_branch " href ="#continuous_delivery_scripts.utils.git_helpers.GitWrapper.set_upstream_branch "> set_upstream_branch</ a > </ code > </ li >
3005
+ < li > < code > < a title ="continuous_delivery_scripts.utils.git_helpers.GitWrapper.stash " href ="#continuous_delivery_scripts.utils.git_helpers.GitWrapper.stash "> stash</ a > </ code > </ li >
2972
3006
< li > < code > < a title ="continuous_delivery_scripts.utils.git_helpers.GitWrapper.uncommitted_changes " href ="#continuous_delivery_scripts.utils.git_helpers.GitWrapper.uncommitted_changes "> uncommitted_changes</ a > </ code > </ li >
2973
3007
</ ul >
2974
3008
</ li >
@@ -3086,6 +3120,7 @@ <h4><code><a title="continuous_delivery_scripts.utils.git_helpers.GitWrapper" hr
3086
3120
< li > < code > < a title ="continuous_delivery_scripts.utils.git_helpers.GitWrapper.root " href ="#continuous_delivery_scripts.utils.git_helpers.GitWrapper.root "> root</ a > </ code > </ li >
3087
3121
< li > < code > < a title ="continuous_delivery_scripts.utils.git_helpers.GitWrapper.set_remote_url " href ="#continuous_delivery_scripts.utils.git_helpers.GitWrapper.set_remote_url "> set_remote_url</ a > </ code > </ li >
3088
3122
< li > < code > < a title ="continuous_delivery_scripts.utils.git_helpers.GitWrapper.set_upstream_branch " href ="#continuous_delivery_scripts.utils.git_helpers.GitWrapper.set_upstream_branch "> set_upstream_branch</ a > </ code > </ li >
3123
+ < li > < code > < a title ="continuous_delivery_scripts.utils.git_helpers.GitWrapper.stash " href ="#continuous_delivery_scripts.utils.git_helpers.GitWrapper.stash "> stash</ a > </ code > </ li >
3089
3124
< li > < code > < a title ="continuous_delivery_scripts.utils.git_helpers.GitWrapper.uncommitted_changes " href ="#continuous_delivery_scripts.utils.git_helpers.GitWrapper.uncommitted_changes "> uncommitted_changes</ a > </ code > </ li >
3090
3125
</ ul >
3091
3126
</ li >
0 commit comments