FredrikNoren / ungit

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

[feature request] Handle untracked files #180

Closed diegoferigo closed 11 years ago

diegoferigo commented 11 years ago

Hi again! In my projects sometimes i need to have a lot of files untracked by git, and .gitignore doesn't help because every update the name of those file changes. With ungit this situation is handled showing all the new files thinking i'm going to commit them, all checked by default. If i press X (discard changes) the file is removed from the folder.

Would be interesting if I can put them in the .gitignore file (a click is way faster than open the file e write the exact name every time) with a button near the X or at least have a button that uncheck all. I'd prefer avoid this last behaviour because otherwise i have to see them all the time in the ready-to-commit file list.

What do you think? Thanks

nroose commented 11 years ago

Do the names fit a pattern? You can use wildcards in the .gitignore file.

On Monday, September 2, 2013, dieghen89 wrote:

Hi again! In my projects sometimes i need to have a lot of files untracked by git, and .gitignore doesn't help because every update the name of those file changes. With ungit this situation is handled showing all the new files thinking i'm going to commit them, all checked by default. If i press X (discard changes) the file is removed from the folder.

Would be interesting if I can put them in the .gitignore file (a click is way faster than open the file e write the exact name every time) with a button near the X or at least have a button that uncheck all. I'd prefer avoid this last behaviour because otherwise i have to see them all the time in the ready-to-commit file list.

What do you think? Thanks

— Reply to this email directly or view it on GitHubhttps://github.com/FredrikNoren/ungit/issues/180 .

diegoferigo commented 11 years ago

Most of them yes, but on average the 30% doesn't. Yes, i could assign to every file to untrack a pattern somewhere in the name (e.g. fix-somethingtofix-pattern.patch) and then *-pattern.patch, but i think that the opportunity to handle the ignore files is useful also for other situations and easy to code.

FredrikNoren commented 11 years ago

Closing this as a duplicate of #29.