FredrikNoren / ungit

The easiest way to use git. On any platform. Anywhere.
MIT License
10.44k stars 637 forks source link

Scoping changes to a sub folder - Input Requested #1386

Open mitchcapper opened 4 years ago

mitchcapper commented 4 years ago

It would be nice to have ungit scope changes to a specific sub folder rather than always assuming the root. For large projects this can be a real saver. Git supports this on local changes and log messages by specifying the path to scope to.

As Ungit uses the native git commands this would seem doable. Scoping for file changes could be done client side, but for actual commit logs it would be likely desirable to do server side. Any input into UI or implementation desires before I give it a shot would be great. We could allow setting the git repo to something other than the root path, and then simply have a checkbox to scope to the current directory or globally.
We could add a second box for the folder to scope to but that seems clunky. Anyway input appreciated in terms of what direction the project would prefer (assuming it would want a PR).