Skip to content

Commit 4372613

Browse files
committed
deploy: fade1c9
1 parent 04f067a commit 4372613

File tree

3 files changed

+23
-8
lines changed

3 files changed

+23
-8
lines changed

branch_delete/download.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,27 @@ def run_command(command: List[str], verbose: bool) -> Optional[str]:
2121

2222

2323
def setup(verbose: bool = False):
24+
run_command(["git", "commit", "--allow-empty", "-m", "Implement loading"], verbose)
25+
run_command(["git", "commit", "--allow-empty", "-m", "Fix loading bug"], verbose)
26+
2427
run_command(["git", "checkout", "-b", "optimization-approach-1"], verbose)
25-
run_command(
26-
["git", "commit", "--allow-empty", "-m", "Fixed scrolling issue"], verbose
27-
)
28+
run_command(["git", "commit", "--allow-empty", "-m", "Apply bubble sort"], verbose)
29+
run_command(["git", "commit", "--allow-empty", "-m", "Fix sorting bug"], verbose)
2830

2931
run_command(["git", "checkout", "main"], verbose)
30-
run_command(["git", "merge", "optimization-approach-1"], verbose)
31-
3232
run_command(["git", "checkout", "-b", "optimization-approach-2"], verbose)
3333
run_command(
3434
[
3535
"git",
3636
"commit",
3737
"--allow-empty",
3838
"-m",
39-
"Trying out alternative optimization approach",
39+
"Apply merge sort",
4040
],
4141
verbose,
4242
)
4343

4444
run_command(["git", "checkout", "main"], verbose)
45+
run_command(
46+
["git", "merge", "optimization-approach-1", "--no-ff", "--no-edit"], verbose
47+
)

branch_rename/download.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,21 @@ def run_command(command: List[str], verbose: bool) -> Optional[str]:
2121

2222

2323
def setup(verbose: bool = False):
24+
run_command(["git", "commit", "--allow-empty", "-m", "Initialize project"], verbose)
25+
run_command(
26+
["git", "commit", "--allow-empty", "-m", "Add React boilerplate"], verbose
27+
)
28+
2429
run_command(["git", "checkout", "-b", "login"], verbose)
2530
run_command(
2631
["git", "commit", "--allow-empty", "-m", "Implement login feature"], verbose
2732
)
2833

2934
run_command(["git", "checkout", "main"], verbose)
35+
run_command(["git", "commit", "--allow-empty", "-m", "Create homepage"], verbose)
36+
37+
run_command(["git", "checkout", "login"], verbose)
38+
run_command(
39+
["git", "commit", "--allow-empty", "-m", "Fix login password bug"], verbose
40+
)
41+
run_command(["git", "checkout", "main"], verbose)

test-download.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,9 @@ def main(exercise_folder_name: str) -> None:
152152
init()
153153
if download_resources:
154154
add_all()
155-
commit("Initial commit")
155+
commit("Initialize exercise")
156156
else:
157-
empty_commit("Initial commit")
157+
empty_commit("Initialize exercise")
158158

159159
if "setup" in namespace:
160160
namespace["setup"]()

0 commit comments

Comments
 (0)