Andr3as / Codiad-CodeGit

Git integration for Codiad
MIT License
26 stars 15 forks source link

Feature Request - Add git oblivious mode #53

Open roostercactus opened 7 years ago

roostercactus commented 7 years ago

Hi, thanks for this great software. Our use case is not for coding, but storing configuration files for the apps we run. We have teams of application admins (and DBAs) who do not know how to use git in the traditional sense. All I want them to be able to do is browse the git repo for their config file, edit the file using the browser editor, and then be forced to add a comment on what they changed and commit it. This way we have version control and can track who did what to the config files.

I'm thinking in the user control panel have a check box to indicate this user is git oblivious and then the only thing they can do with regards to git is edit files in the browser editor and then be forced to enter a comment and then commit. Any other git options would need to be hidden from them. I thought maybe once a file is saved it triggers the Commit dialog so they are forced to add a comment and then commit if they save a file. I know something gets triggered on save because it shows a visual cue in the left panel when the git repo is changed.

I did find out by editing the templates/overview.html file I can hide the git options except for Commit...but this hides it for everyone. I'm not a programmer so this is just me stabbing at it.

Any thoughts on that? Thanks!

Andr3as commented 7 years ago

Sry for my late response. This would be theoretical possible but it is not the normal use case of git. This would require some hughe changes for which I don't have the time. I let this issue open if someone wants to help.