Git Status (git)

44 teams scored 1570 points on this task, for a maximum score of 100, an average score of 36 and a median score of 10.

Highlights

  1. ITT G. Chilesotti, Thiene is the institute with the most points (100).
  2. Emilia-Romagna is the region with the most points (230).

Statement

Today William was looking for a simple solution to backup his entire hard drive. Basically, he wants to make a full copy of the entire file system structure, starting from the root / and copying every subdirectory, recursively. To do this, normally you would use something like rsync, however he decided that git was the best software for the job. The way git works is that it monitors which files are changed, and at any point in time you can choose to commit the latest changes and finally push them to a remote repository: backup done! To make his life easier, William wants to write a program that will show which files were changed since the last commit. Yes, there is a git command for it (git status) but it's not really optimal: if a folder only contains files that were modified, the command will still list each individual file, like this: In such a case, William prefers to only list the directory which contains only-modified files...