Skip to content

Commit b14bf41

Browse files
varmar05wonder-sk
authored andcommitted
disable upload of renamed files, push removed and added ones instead (closes #27)
1 parent 2bc521a commit b14bf41

File tree

4 files changed

+124
-142
lines changed

4 files changed

+124
-142
lines changed

Pipfile.lock

Lines changed: 111 additions & 99 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mergin/cli.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,14 @@
2626

2727

2828
def get_changes_count(diff):
29-
attrs = ["added", "removed", "updated", "renamed"]
29+
attrs = ["added", "removed", "updated"]
3030
return sum([len(diff[attr]) for attr in attrs])
3131

3232

3333
def pretty_diff(diff):
3434
added = diff["added"]
3535
removed = diff["removed"]
3636
updated = diff["updated"]
37-
renamed = diff["renamed"]
38-
39-
if renamed:
40-
click.secho("\n>>> Renamed:", fg="cyan")
41-
for f in renamed:
42-
click.echo(" ".join([f["path"], "->", f["new_path"]]))
4337

4438
if removed:
4539
click.secho("\n>>> Removed:", fg="cyan")

0 commit comments

Comments
 (0)