diff --git a/README.md b/README.md index d1a8f7f..7374f4d 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,11 @@ Utility for making beautiful commit and check commit message format ## Getting Started -1. Download the project, open it in Xcode and build. -2. In Project navigator (left panel), open Products directory. -3. Right-click on gitcom executable -> Show in Finder. Copy executable gitcom file into your project directory. +1. Download the project, open it in Xcode. +2. Change the Team Signing section in project file. +3. Build and archive project. +4. Open the directory with executable file. +5. Run `./gitcom integrate git` to install app in your system (copy gitcom executable file into usr/loclal/bin directory. Allows to use **gitcom**, **git cm** and **git-cm** commands ). ## Usage @@ -27,7 +29,7 @@ To create default configuration file, run **gitcom generate-config**.
Default configuration file -``` +```json { "body" : { "request" : "Please enter a body of commit", @@ -202,5 +204,5 @@ Configuration file structure: ### Validate commit Run **gitcom validate** command with commit message as argument for its validation. -
Example: gitcom validate "build: (fix) subject|body|META:footer" +
Example: `gitcom validate "build: (fix) subject|body|META:footer"` \ No newline at end of file diff --git a/gitcom.xcodeproj/project.pbxproj b/gitcom.xcodeproj/project.pbxproj index 03a986c..8779803 100755 --- a/gitcom.xcodeproj/project.pbxproj +++ b/gitcom.xcodeproj/project.pbxproj @@ -369,9 +369,11 @@ A1BA76972234448200806C32 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { + CODE_SIGN_IDENTITY = "Mac Developer"; CODE_SIGN_STYLE = Automatic; DEVELOPMENT_TEAM = 3LLP5BAPPE; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_VERSION = 4.2; }; name = Debug; @@ -379,9 +381,11 @@ A1BA76982234448200806C32 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { + CODE_SIGN_IDENTITY = "Mac Developer"; CODE_SIGN_STYLE = Automatic; DEVELOPMENT_TEAM = 3LLP5BAPPE; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_VERSION = 4.2; }; name = Release; diff --git a/gitcom.xcodeproj/xcuserdata/gener.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist b/gitcom.xcodeproj/xcuserdata/gener.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist index 8dbfbf7..52fdf22 100755 --- a/gitcom.xcodeproj/xcuserdata/gener.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist +++ b/gitcom.xcodeproj/xcuserdata/gener.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist @@ -303,8 +303,8 @@ endingColumnNumber = "9223372036854775807" startingLineNumber = "179" endingLineNumber = "179" - landmarkName = "validate(config:parts:)" - landmarkType = "7"> + landmarkName = "ValidateCommand" + landmarkType = "3"> Bool { guard let bodyString = body, !bodyString.isEmpty else { - print(error: "Commit message must not be empty.") - return false + if let min = bodySettings.length.min, min.value > 0 { + print(error: "Commit message must not be empty.") + return false + } + else { + return true + } } if let min = bodySettings.length.min, min.value > bodyString.count { print(error: min.insufficient(prefix: "Body"))