Inspection
Folder history
3 min read
Folder history lists the commits that touched anything inside a folder, at any level below it.
For each commit, it shows only the files in that folder that changed. It's the way to follow the
evolution of a module, such as src/pagamentos, without the noise from the rest of the
repository.
- File menu (right-click a file in the changes panel or in a commit's list): History of folder <folder>, with the file's folder. It only appears when the file is inside a folder.
- Right panel, in the Tree view of the file list: right-click a folder › History of folder <folder>.
- Revision tree: right-click a folder › Folder history. It opens this same screen, with the commits up to the revision shown in the tree (the up to <sha> chip in the header).
- Palette (Ctrl+P): "Folder history…" ("Commits that touched anything inside the folder").
- Opened from the menu of a file in a commit's list, the history goes up to that commit, and the header shows the up to <sha> chip.
- Opened from the revision tree, it goes up to the revision shown in the tree, with the same chip.
- In the other cases, it starts from the current branch's HEAD.
- Right-click a file in
src/pagamentosand choose History of folder src/pagamentos.- From the palette: choose "Folder history…", type the path in Folder ("Folder path from
the repository root.", for example
src/components) and click Show history.
- From the palette: choose "Folder history…", type the path in Folder ("Folder path from
the repository root.", for example
- Go through the list. Each commit has the summary (with links), the author, the date, the short SHA and the note "N files in the folder". Merge commits get the merge badge.
- Choose a commit. On the right you see the commit's header, with Go to commit and Copy SHA, and the Files in the commit list, with only the folder's files.
- Click a file in the list to see its diff in that commit.
- Scroll to the end to load more commits ("Loading more…"). Versora reads 100 at a time. The counter becomes "N+ commits" when there are more.
- Use the reload button in the header to read again, and the X or Esc to close.
Right-clicking a commit in the list offers Go to commit and Copy SHA.
Read only:
git log --name-status -M -z --skip=<n> -n <count> <starting-commit> -- <folder>
git log lists merges without files. For a merge, Versora computes the folder's files against
the first parent:
git diff --name-status -M -z <commit>^1 <commit> -- <folder>
There's nothing to undo: the screen only reads the repository.
- "No commit touched <folder>.": the folder has no history from the chosen point, or the path doesn't exist. Check that the path starts from the repository root.
- "No file in this folder changed in this commit.": appears in the file list of a commit with no change inside the folder.
- "Pick a file to see the diff.": choose a file in the Files in the commit list.
- "Pick a folder in the repository.": the path you entered is empty or points outside the repository.
- "The repository has no commits yet": the palette makes the command unavailable in a repository with no commits.
Folder history has no preference of its own and no company policy key.