The sublime-project file should be checked into version control #341

Merged
merged 1 commit into from Oct 5, 2012

Conversation

Projects
None yet
6 participants
Contributor

x3ro commented May 10, 2012

It contains project specific configuration, and should therefore by
checked into version control (as documented on
http://www.sublimetext.com/docs/2/projects.html)

@x3ro x3ro The sublime-project file should be checked into version control
It contains project specific configuration, and should therefore by
checked into version control (as documented on
http://www.sublimetext.com/docs/2/projects.html)
21f9741

ShepBook commented Oct 5, 2012

As I subl user, I fully support this PR :shipit:

Thanks!

@ShepBook ShepBook pushed a commit that referenced this pull request Oct 5, 2012

Jared Koumentis Merge pull request #341 from x3ro/fix-sublime
The sublime-project file should be checked into version control
8200f76

@ShepBook ShepBook merged commit 8200f76 into github:master Oct 5, 2012

I this, it's a good idea to keep them ignored, because when you work with collaborators, they have different .sublime-project files (because the path will be different).

Example .sublime-project:

{
    "folders":
    [
        {
            "path": "/Users/arne/GitHub/my-project"
        }
    ]
}

abrkn commented on 21f9741 Jun 17, 2013

This is very confusing. The file contains both project specific and user specific information.

Contributor

Hastegan replied Feb 26, 2016

@bahlo This file should not contain user specific informations, if there are some, you are making a mistake.
The path should contain a relative path, if the .sublime-project file is at the root of the project, just put . in the path and you are good to go :

{
    "folders":
    [
        {
            "path": "."
        }
    ]
}

PS: @x3ro my bad, I replied to theses old comments first.

Contributor

x3ro replied Feb 26, 2016

@bahlo @abrkn See Sublime docs:

Projects in Sublime Text are made up of two files: the sublime-project file, which contains the project definition, and the sublime-workspace file, which contains user specific data, such as the open files and the modifications to each.
As a general rule, the sublime-project file would be checked into version control, while the sublime-workspace file would not.

PS: I just realized that the comments are from two years ago. My apologies.

"path": "." fixes this particular thing.

@drothmaler drothmaler pushed a commit to drothmaler/gitignore that referenced this pull request May 27, 2014

Jared Koumentis Merge pull request #341 from x3ro/fix-sublime
The sublime-project file should be checked into version control
057adda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment