{"push_id":988557877,"size":3,"distinct_size":3,"ref":"refs/heads/master","head":"40c7ebf0761e97fa2c6bb047e169a85e4ac0c6f4","before":"f461e7678980ec9ced7d37b2b18abf8a7da393da","commits":[{"sha":"e698a3b8d96d3336174d9513bed1351da882a845","author":{"email":"376ec521fd903ed6a97a88545eb54436108cbae2@debian.org","name":"Alessio Treglia"},"message":"Add LooseLoad's test case","distinct":true,"url":"https://api.github.com/repos/go-ini/ini/commits/e698a3b8d96d3336174d9513bed1351da882a845"},{"sha":"496d0afe563324e437f3645723a98de32289e213","author":{"email":"376ec521fd903ed6a97a88545eb54436108cbae2@debian.org","name":"Alessio Treglia"},"message":"Add LooseLoad - fix #33\n\nA common practice in applications development is to allow the user\nto customise/extend program's settings by overriding global defaults\nset in system-wide config files (typically installed under /etc)\nwith site-specific copies (e.g. /usr/local/etc) and user-specific\nfiles generally stored in the user's home directory. It must be\nnoticed that this cascade approach allows the user to specify only\nthose options that he wishes to override, whilst the other values\nwill keep their value already set in the other configuration\nfiles. In general, when a program couldn't find any configuration\nfile rather than crashing it falls back to hardcoded default values.\n\nThese changes introduce a new function LooseLoad that allows the\ncaller to pass a slice of filenames without worrying about their\nexistence or not. LooseLoad will attempt to load them in order.\nIf a file doesn't just, it will just be ignored and the function\nwon't return any error. In case no files existed, an empty\nconfiguration will be returned to the caller.\n\nThis functionality is inspired by the Python's standard library\nconfigparser.RawConfigParser.read() function:\n\n https://docs.python.org/2/library/configparser.html#ConfigParser.RawConfigParser.read","distinct":true,"url":"https://api.github.com/repos/go-ini/ini/commits/496d0afe563324e437f3645723a98de32289e213"},{"sha":"40c7ebf0761e97fa2c6bb047e169a85e4ac0c6f4","author":{"email":"51e69892ab49df85c6230ccc57f8e1d1606caccc@gogs.io","name":"Unknwon"},"message":"Merge pull request #34 from alessio/loose-load\n\nAdd LooseLoad - fix #33","distinct":true,"url":"https://api.github.com/repos/go-ini/ini/commits/40c7ebf0761e97fa2c6bb047e169a85e4ac0c6f4"}]}