Skip to content

Commit

Permalink
now generated classes are ignored by source control hook
Browse files Browse the repository at this point in the history
fixes #36
  • Loading branch information
adaptun committed Apr 8, 2016
1 parent 36503b9 commit f99cf19
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion %SourceControl/Git/Utils.cls.xml
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,12 @@ projectName without extension</Description>
#dim type As %String = ..Type(InternalName)
if type = "cls" {
set isInSourceControl = ..FindInPackages(InternalName, .sourceControlItem)
#define StripExtension(%s) $Piece(%s,".",1,*-1)
if InternalName'="" && ($$$defClassKeyGet($$$StripExtension(InternalName),$$$cCLASSgeneratedby)'="") {
set isInSourceControl = 0 // skip generated classes
} else {
set isInSourceControl = ..FindInPackages(InternalName, .sourceControlItem)
}
} elseif type = "csp" {
if $Extract(InternalName) '= "/" {
set InternalName = "/" _ InternalName
Expand Down

0 comments on commit f99cf19

Please sign in to comment.