{"push_id":2355202909,"size":3,"distinct_size":3,"ref":"refs/heads/session_cleaner","head":"95d5b9112490e5758fa02ccb2d6d6195ecd3dba3","before":"86a4d575e33b542207e56c431c9150d3a7da2758","commits":[{"sha":"1f94abdd57d08f81f31b8f51e0528ccdb7b68719","author":{"name":"Terence Martin","email":"f27a17fc90c00d8c248d8510a1084221738b492b@nurdz.com"},"message":"More refactoring and cleanup\n\nThis refactors the remaining code to be more clear and clean with\nregards to exception handling.\n\nHere the operations to load, save and clean the session file are split\napart and handle their own errors, making it much easier to see where\nthings might go wrong and ensure that the proper error messages are\ntriggered.\n\nThis also creates an abstraction for checking if a workspace is valid\nor not, since on Windows more work needs to be done on the path in\norder to check, given that Sublime uses a non-native file name format\nfor these entries in the session.","distinct":true,"url":"https://api.github.com/repos/STealthy-and-haSTy/SublimeScraps/commits/1f94abdd57d08f81f31b8f51e0528ccdb7b68719"},{"sha":"1574c09bf532be4bf55a07a28fb1c7c84c92e394","author":{"name":"Terence Martin","email":"f27a17fc90c00d8c248d8510a1084221738b492b@nurdz.com"},"message":"Implement proper existence checking on Windows\n\nThis implements proper checking for the existence of Sublime workspace\nfiles on the Windows platform, where Sublime stores files in a\ndifferent format than one might expect in some cases.\n\nIn the case of a UNC file name to the workspace, the file is stored as\none might expect except with POSIX separators, for example:\n\n    //weyr/Public/TestProject/TestProject.sublime-workspace\n\nSuch a path works with the `os.path.isfile()` method as one might\nexpect (including when the host name is a numeric IP) although if the\nhost is not available the method predictably returns `False`, which\nmay or may not be desirable.\n\nIn contrast, file names that normally have a drive letter (either a\nlocal drive or due to a drive mapping) are stored with the drive being\nconsidered a path segment off of the root instead of a normal drive.\ne.g.:\n\n    /C/Users/micro/Desktop/TestProject/TestProject.sublime-workspace\n\nIn this case the existence check fails because the file name is not in\nan appropriate format.\n\nThis change modifies the handling specifically for windows where the\nfile is not a UNC path (as determined by checking the prefix) and\nrewriting the file to include a drive letter.","distinct":true,"url":"https://api.github.com/repos/STealthy-and-haSTy/SublimeScraps/commits/1574c09bf532be4bf55a07a28fb1c7c84c92e394"},{"sha":"95d5b9112490e5758fa02ccb2d6d6195ecd3dba3","author":{"name":"Terence Martin","email":"f27a17fc90c00d8c248d8510a1084221738b492b@nurdz.com"},"message":"Improve command line handling using argparse\n\nThis alters the script to use the `argparse` module to parse the\ncommand line, which allows us to more naturally specify the data\ndirectory.\n\nIn addition, a `--dry-run` parameter is also implemented, which makes\nthe session cleaner stop prior to actually rewriting the session file.\nThis allows you to see what it would do without actually taking the\naction.\n\nAs a result of these changes, the README is also updated.","distinct":true,"url":"https://api.github.com/repos/STealthy-and-haSTy/SublimeScraps/commits/95d5b9112490e5758fa02ccb2d6d6195ecd3dba3"}]}
{"actor":{"display_login":"OdatNurd"}}