Commit d4a17c77 authored by Matěj Šinogl's avatar Matěj Šinogl
Browse files

Add file containing answers

This commit adds a file containing answers to a quiz, as instructed and
assigned in homework 06.
parent 05f43149
Loading
Loading
Loading
Loading
+39 −0
Original line number Diff line number Diff line
# Question 1
git log upstream/main --merges --oneline --after="2025-02-28" --before="2025-03-26" | wc -l
17 -- I interpretted the specified date range as used in the command, although I tested the other possible options and came to the conclusion that the answer is 17 no matter what
---
# Question 2
git log --all --oneline | grep "add bonus task info in README.md"
git show d0f78db
Author: Irina Gulina <igulina@redhat.com>
---
# Question 3
(git log upstream --pretty=fuller)
git log upstream --oneline
git show 46ff882 --pretty="fuller"
46ff882 "fix hw05 task" -- This commit does have a clear and concise title, but I think there should be more specific information on what exactly is being fixed in the body.
---
# Question 4
git log 069847a7 --graph --oneline
git log 069847a7~1 --graph --oneline
git log 069847a7~2 --graph --oneline
git show 069847a7~2
git show 069847a7~2^1
git show 069847a7~2^2
069847a7~2^2 -- I looked at the graph starting from the first commit, and then traced the correct path :)
---
# Question 5
git log upstream --before="2025-03-24" --pretty="%an" | sort | uniq | wc -l
14 -- I interpretted the question as "how many ... before March 24th?", although I could also see it as "how many ... who committed at March 23rd?". Also, an eye test revealed that Tomas has committed as "Tomáš Tomeček" and "Tomas Tomecek", so if we are to count unique people, the answer should be 13 instead of 14 I suppose. 
---
# Question 6
git show --name-status
git log --name-status
The option '--name-status' applied to `git show/log` displays the changes to files, as seen in the example.
---
# Question 7
git log -S"**Grading**: successfully complete 5 mandatory homeworks, or 4/5 homeworks plus a bonus task"
(git show 7b8a2ce)
git show 35c747bd
35c747bd "correct a link syntax and HW info in Readme" by Irina -- I used the '-S' option to find the commit, which yielded 2 results, the answer, and the commit which added the content of the homework.
---