skilleter-thingy 0.2.14__py3-none-any.whl → 0.2.15__py3-none-any.whl
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.
Potentially problematic release.
This version of skilleter-thingy might be problematic. Click here for more details.
- skilleter_thingy/thingy/git.py +10 -4
- {skilleter_thingy-0.2.14.dist-info → skilleter_thingy-0.2.15.dist-info}/METADATA +1 -1
- {skilleter_thingy-0.2.14.dist-info → skilleter_thingy-0.2.15.dist-info}/RECORD +7 -7
- {skilleter_thingy-0.2.14.dist-info → skilleter_thingy-0.2.15.dist-info}/WHEEL +0 -0
- {skilleter_thingy-0.2.14.dist-info → skilleter_thingy-0.2.15.dist-info}/entry_points.txt +0 -0
- {skilleter_thingy-0.2.14.dist-info → skilleter_thingy-0.2.15.dist-info}/licenses/LICENSE +0 -0
- {skilleter_thingy-0.2.14.dist-info → skilleter_thingy-0.2.15.dist-info}/top_level.txt +0 -0
skilleter_thingy/thingy/git.py
CHANGED
|
@@ -948,7 +948,7 @@ def ref(fields=('objectname'), sort=None, remotes=False, path=None):
|
|
|
948
948
|
|
|
949
949
|
################################################################################
|
|
950
950
|
|
|
951
|
-
def branches(all=False, path=None):
|
|
951
|
+
def branches(all=False, path=None, remote=False):
|
|
952
952
|
""" Return a list of all the branches in the current repo """
|
|
953
953
|
|
|
954
954
|
cmd = ['branch', '--format=%(refname:short)','--list']
|
|
@@ -956,6 +956,9 @@ def branches(all=False, path=None):
|
|
|
956
956
|
if all:
|
|
957
957
|
cmd.append('--all')
|
|
958
958
|
|
|
959
|
+
if remote:
|
|
960
|
+
cmd.append('--remote')
|
|
961
|
+
|
|
959
962
|
results = []
|
|
960
963
|
for output in git(cmd, path=path):
|
|
961
964
|
if ' -> ' not in output and '(HEAD detached at ' not in output:
|
|
@@ -1250,7 +1253,10 @@ def matching_branch(branchname, case=False, path=None):
|
|
|
1250
1253
|
otherwise, it just checks for a branches containing the branchname
|
|
1251
1254
|
as a substring. """
|
|
1252
1255
|
|
|
1253
|
-
|
|
1256
|
+
local_branches = branches(path=path)
|
|
1257
|
+
remote_branches = branches(path=path, remote=True)
|
|
1258
|
+
|
|
1259
|
+
all_branches = local_branches + remote_branches
|
|
1254
1260
|
|
|
1255
1261
|
# Always return exact matches
|
|
1256
1262
|
|
|
@@ -1284,8 +1290,8 @@ def matching_branch(branchname, case=False, path=None):
|
|
|
1284
1290
|
# If the match is a remote branch, ignore it if we already have the equivalent
|
|
1285
1291
|
# local branch, otherwise add the name of the local branch that would be created.
|
|
1286
1292
|
|
|
1287
|
-
if branch
|
|
1288
|
-
localbranch = '/'.join(branch.split('/')[
|
|
1293
|
+
if branch in remote_branches:
|
|
1294
|
+
localbranch = '/'.join(branch.split('/')[1:])
|
|
1289
1295
|
if localbranch not in matching:
|
|
1290
1296
|
matching_remote.append(localbranch)
|
|
1291
1297
|
else:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: skilleter_thingy
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.15
|
|
4
4
|
Summary: A collection of useful utilities, mainly aimed at making Git more friendly
|
|
5
5
|
Author-email: John Skilleter <john@skilleter.org.uk>
|
|
6
6
|
Project-URL: Home, https://skilleter.org.uk
|
|
@@ -43,7 +43,7 @@ skilleter_thingy/thingy/dc_util.py,sha256=Df73imXhHx3HzcPHiRcHAoea0e3HURdLcrolUs
|
|
|
43
43
|
skilleter_thingy/thingy/dircolors.py,sha256=aBcq9ci855GSOIjrZWm8kG0ksCodvUmc4FlIOEOyBcA,12292
|
|
44
44
|
skilleter_thingy/thingy/docker.py,sha256=iT8PqX2hJfcR1e4hotQfSBBYNe0Qdcmeo-XJ6y7lw7Y,2477
|
|
45
45
|
skilleter_thingy/thingy/files.py,sha256=nFIOEi2rl2SuYa6Zd7Nf1BWCKyKlF8D6hsbPlfnVefQ,4791
|
|
46
|
-
skilleter_thingy/thingy/git.py,sha256=
|
|
46
|
+
skilleter_thingy/thingy/git.py,sha256=aa4vFwXiZ9JkH-zJuKZWACw4Ympcomi6EsPdlLIJiSs,43227
|
|
47
47
|
skilleter_thingy/thingy/gitlab.py,sha256=uXAF918xnPk6qQyiwPQDbMZfqtJzhiRqDS7yEtJEIAg,6079
|
|
48
48
|
skilleter_thingy/thingy/path.py,sha256=8uM2Q9zFRWv_SaVOX49PeecQXttl7J6lsmBuRXWsXKY,4732
|
|
49
49
|
skilleter_thingy/thingy/popup.py,sha256=TY9rpj4q8uZxerSt641LGUTy0TZgUjgfEX-CkRMuyek,2540
|
|
@@ -51,9 +51,9 @@ skilleter_thingy/thingy/run.py,sha256=Q6uug_LucKbn36RB-r08QYaCzmeoU452ipzQ2YiVUP
|
|
|
51
51
|
skilleter_thingy/thingy/tfm_pane.py,sha256=XTTpSm71CyQyGmlVLuCthioOwech0jhUiFUXb-chS_Q,19792
|
|
52
52
|
skilleter_thingy/thingy/tidy.py,sha256=AQ2RawsZJg6WHrgayi_ZptFL9occ7suSdCHbU3P-cys,5971
|
|
53
53
|
skilleter_thingy/thingy/venv_template.py,sha256=ZfUvi8qFNGrk7J030Zy57xjwMtfIArJyqa-MqafyjVk,1016
|
|
54
|
-
skilleter_thingy-0.2.
|
|
55
|
-
skilleter_thingy-0.2.
|
|
56
|
-
skilleter_thingy-0.2.
|
|
57
|
-
skilleter_thingy-0.2.
|
|
58
|
-
skilleter_thingy-0.2.
|
|
59
|
-
skilleter_thingy-0.2.
|
|
54
|
+
skilleter_thingy-0.2.15.dist-info/licenses/LICENSE,sha256=ljOS4DjXvqEo5VzGfdaRwgRZPbNScGBmfwyC8PChvmQ,32422
|
|
55
|
+
skilleter_thingy-0.2.15.dist-info/METADATA,sha256=NV9puo96TLDp25-yZ2LNqq95Q3eAAIcNX0rhciQJh58,28914
|
|
56
|
+
skilleter_thingy-0.2.15.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
57
|
+
skilleter_thingy-0.2.15.dist-info/entry_points.txt,sha256=MTNWf8jOx8Fy3tSwVLCZPlEyzlDF36odw-IN-cSefP8,1784
|
|
58
|
+
skilleter_thingy-0.2.15.dist-info/top_level.txt,sha256=8-JhgToBBiWURunmvfpSxEvNkDHQQ7r25-aBXtZv61g,17
|
|
59
|
+
skilleter_thingy-0.2.15.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|