Skip to content

Instantly share code, notes, and snippets.

@fgarcia
Created October 31, 2012 11:01
Show Gist options
  • Select an option

  • Save fgarcia/3986458 to your computer and use it in GitHub Desktop.

Select an option

Save fgarcia/3986458 to your computer and use it in GitHub Desktop.
issue report #template
// problem
SourceTree does not behave as Git when adding and committing a folder with ignored parts
// given
User has a global Git ignore file with the pattern "xcuserdata"
// when
User add an Xcode project file like MyApp.xcodeproj/
User commit changes
// expected
Normal commit, with no warnings/errors
// current result
SourceTree prevents the commit because the global ignore file matches one of the contents of the added folder
// rationale
Git does not prevent a commit in this case. A behavior similar to the managed tool provides a better UX.
This user story should be common. Normally a developer does not want to commit his/her breakpoints to the repository
// workaround
It is possible to overwrite a global ignored pattern to allow commits. However this will also commit undesired data to the repository
// solutions
1. A warning dialog with options to continue OR cancel
2. Successful commit with no dialog. Optionally a log message with a warning
@fgarcia

fgarcia commented Oct 31, 2012

Copy link
Copy Markdown
Author

Use as template. This is an issue I created for SourceTree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment