From da96a314c0ac394730dc1705a4a7773c89e25c7e Mon Sep 17 00:00:00 2001 From: Alex Hirsch Date: Tue, 29 Sep 2020 13:55:18 +0200 Subject: [PATCH] Replace commit example with old one --- assignment1/README.md | 35 ++++++++++++++++++++++------------- 1 file changed, 22 insertions(+), 13 deletions(-) diff --git a/assignment1/README.md b/assignment1/README.md index d9a9489..0f05bf4 100644 --- a/assignment1/README.md +++ b/assignment1/README.md @@ -47,7 +47,7 @@ The message is provided to the `commit` sub-command as additional argument. As unique identifier use a counter (starting from 0) and prefix the value with `r` (for revision). ``` -$ lit commit 'Commit message goes here' +$ lit commit 'Add coin operated self-destruct feature' Commit: r42 Date: Mon Sep 28 23:27:53 CEST 2020 ``` @@ -62,21 +62,30 @@ $ lit show r42 Commit: r42 Date: Mon Sep 28 23:27:53 CEST 2020 -Commit message goes here +Add coin operated self-destruct feature ---- a/Assets/Generic/Logic/Utils/Math.cs -+++ b/Assets/Generic/Logic/Utils/Math.cs -@@ -1,5 +1,10 @@ - using UnityEngine; +--- a/main.c ++++ b/main.c +@@ -1,8 +1,19 @@ + #include + #include -+static class Vector2Extensions -+{ -+ public static Vector3 AsVector3(this Vector2 v) => new Vector3(v.x, v.y); -+} ++#include + - static class Vector3Extensions - { - public static Vector2 AsVector2(this Vector3 v) => new Vector2(v.x, v.y); ++#include ++ + int main(void) + { + puts("Hello World"); ++ ++ if (coin_operator_triggered()) { ++ puts("Have a nice day (> . =)"); ++ prop_engine_t *engine = prop_ftl_get_shaw_fujikawa(); ++ prop_detonate(engine); ++ } ++ + return EXIT_SUCCESS; + } ``` ### `lit checkout`