gitlit icon indicating copy to clipboard operation
gitlit copied to clipboard

Feature request: Show only files I likely want to lock (Filter by changed tracked files)

Open seriema opened this issue 4 years ago • 0 comments

We're on a project with dozens of developers, and thousands of files. Listing all files to lock isn't very useful.

User Story As a developer that have recently made some changes, I would like to lock them so no one else changes this file.

Implementation This should be possible by running git diff --name-status and using the result to filter out only the outputed files. Example:

$ git diff --name-status
M       Config/Default.ini
M       README.md
  • There's probably some format flags for git to only get the files if the status-letter and tab are an issue.
  • Add a menu option, perhaps top level "View", with the option "Show only changed files".
  • I didn't differentiate between staged and unstaged files because I think it'd only add more work for the feature, without giving any real value in return.

seriema avatar May 16 '21 16:05 seriema