We are evaluating stash. Our current source control system forces text files in Unix format. It looks like something similar can be done with git via the config command.
Does stash provide any way of managing this or is there a way to create the repo like this by default?
Actually I tell a lie. It can be fone via the .gitattributes file.
It would certainly be possible to write a plugin which automatically creates a repository with these settings enabled. There isn't anything on the road map yet, but we will certainly keep it in mind.
You can raise a STASH Jira, and we can track/vote on the feature request there.
To write the plugin (or anyone reading this) you could listen for the RepositoryCreatedEvent, and then use GitScmConfig.getRepositoryDir() to find the directory, manually create the attributes file and commit. The 'tricky' part is know when to apply this behaviour. If you always want the same line-endings then you don't have to worry about configuration screens and such.
I hope this helps.
If you are migrating from Subversion, consider using SVN Importer Plugin for Stash. It converts any SVN repository to Git and keeps all the line ending rules one has enforced for SVN repository (among other things).
You might be interested in this blog post as well, it has a great overview of using .gitattributes file to enforce line endings at Git repository; it also compares Git & SVN techniques of handling EOL bytes.
Hope that helps,
Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot