<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://customerfx.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Ryan Farley&amp;#39;s Blog : Git, Source Control, Tools</title><link>http://customerfx.com/pages/crmdeveloper/archive/tags/Git/Source+Control/Tools/default.aspx</link><description>Tags: Git, Source Control, Tools</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP2 (Build: 20611.960)</generator><item><title>Excluding SalesLogix Model Files from Source Control</title><link>http://customerfx.com/pages/crmdeveloper/2009/11/12/excluding-saleslogix-model-files-from-source-control.aspx</link><pubDate>Thu, 12 Nov 2009 19:52:00 GMT</pubDate><guid isPermaLink="false">e15581aa-2787-4c59-a940-524c09f5d256:41108</guid><dc:creator>Ryan Farley</dc:creator><slash:comments>3</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://customerfx.com/pages/crmdeveloper/rsscomments.aspx?PostID=41108</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://customerfx.com/pages/crmdeveloper/commentapi.aspx?PostID=41108</wfw:comment><comments>http://customerfx.com/pages/crmdeveloper/2009/11/12/excluding-saleslogix-model-files-from-source-control.aspx#comments</comments><description>
&lt;p&gt;I love working with SalesLogix models in source control. Specifically with Git. However, whether you&amp;#39;re using Git, or some other source control system, there are certain files in a SalesLogix model that you do not want to include in your source control. Many part of the files in an exported SalesLogix model are automatically generated by the Application Architect and by the build process when you build your web platform. Having these files under source control would only complicate things when working with multiple developers since you&amp;#39;d each need to merge these automatically generated files with each pull/checkout from source control since they change every time.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;font size="4"&gt;&lt;b&gt;Model Files to Exclude&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p&gt;Let&amp;#39;s take a look at which files to exclude from source control and why.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;b&gt;ModelIndex.xml&lt;/b&gt; - This file is a temporary cache created by Application Architect as you access objects. This file can be deleted and will be automatically created again as needed. This is a volatile file and if included in source control would require constant merging with no benefit.&lt;/li&gt;

&lt;li&gt;&lt;b&gt;Model\Deployment folder tree&lt;/b&gt; - The deployment folder in the model is where the Application Architect will create all of the actual SmartPart.ascx files and other deployable items from the QuickForm meta data and entities in your model. This is not to be confused with a &amp;quot;deployment&amp;quot; per se, but this is a staging area for things to be deployed that are created when you build your platform. As you create, modify, delete items in the model and then build your web platform all of the deployment files are generated based on what is in your model. Including these files in your source control system will complicate things since these files are created all over again as you build your web platform. To keep your folder structure in tact, I usually will exclude the following from source control:&lt;/li&gt;

&lt;ul&gt;
&lt;li&gt;Model\deployment\webroot\common\SmartParts\**\*&lt;/li&gt;

&lt;li&gt;Model\deployment\webroot\common\SmartParts\**\**\*&lt;/li&gt;

&lt;li&gt;Model\deployment\webroot\common\SummaryConfigData\*&lt;/li&gt;

&lt;li&gt;Model\deployment\webroot\common\bin\*&lt;/li&gt;

&lt;li&gt;Model\deployment\webroot\common\*&lt;/li&gt;

&lt;li&gt;Model\deployment\common\bin\Sage.Entity.Interfaces.dll&lt;/li&gt;

&lt;li&gt;Model\deployment\common\bin\Sage.Form.Interfaces.dll&lt;/li&gt;
&lt;/ul&gt;

&lt;li&gt;In addition to what is excluded from the SalesLogix model, using file merge tools, such as KDiff, DiffMerge, etc, you will have additional copies of files created that you&amp;#39;ll want to exclude. When working with Git Extensions you&amp;#39;ll see these copies of files with .LOCAL, .REMOTE, .BASE extensions.&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;br /&gt;&lt;font size="4"&gt;&lt;b&gt;Ignoring Files with Git&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p&gt;As I mentioned before, I love Git. To exclude files from a Git repository you simply create a text file in the root of the repository named &amp;quot;.gitignore&amp;quot; and you can add files or directories to ignore (or to not ignore by prefixing the file or directory name with a &amp;quot;!&amp;quot;). This is what the contents of my .gitignore file looks like for a standard SalesLogix model:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;# Files created from merge tools&lt;br /&gt;*.BASE&lt;br /&gt;*.LOCAL&lt;br /&gt;*.REMOTE&lt;br /&gt;*.orig&lt;br /&gt;&lt;br /&gt;# Model files that are auto-generated&lt;br /&gt;[Mm]odel[Ii]ndex.xml&lt;br /&gt;&lt;br /&gt;# Standard deployment files&lt;br /&gt;*/deployment/webroot/common/[Ss]mart[Pp]arts/**/*&lt;br /&gt;*/deployment/webroot/common/[Ss]mart[Pp]arts/**/**/*&lt;br /&gt;*/deployment/webroot/common/[Ss]ummary[Cc]onfig[Dd]ata/*&lt;br /&gt;*/deployment/webroot/common/bin/*&lt;br /&gt;*/deployment/webroot/common/*&lt;br /&gt;*/deployment/common/bin/[Ss]age.[Ee]ntity.[Ii]nterfaces.dll&lt;br /&gt;*/deployment/common/bin/[Ss]age.[Ff]orm.[Ii]nterfaces.dll&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;br /&gt;&lt;font size="4"&gt;&lt;b&gt;Ignoring Files with Git Extensions for SalesLogix&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;To make all of this easier with working with Git for source control with a SalesLogix model, I have updated Git Extensions for SalesLogix. The menu in Application Architect now includes a menu option to edit your .gitignore, and if it does not yet exist, it will give you the option to add all of the standard entries I have mentioned above. &lt;/p&gt;&lt;p&gt;&lt;img src="http://customerfx.com/blogs/crmdeveloper/GitIgnore_Menu.png" border="1" alt="" /&gt;&lt;/p&gt;&lt;p&gt;&lt;img src="http://customerfx.com/blogs/crmdeveloper/GitIgnore_Message.png" border="1" alt="" /&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;In addition, when you initialize a new Git repository for a model from Application Architect the .gitignore file will be automatically created for you wit the entries mentioned above. Note, when you open a model in Application Architect and click the browse button on the Git Extensions toolbar it will detect if the current model has a Git repository or not and will prompt you to create the repository if one does not yet exist.&lt;/p&gt;&lt;p&gt;To download this update to Git Extensions for SalesLogix, just &lt;a href="http://cloud.github.com/downloads/CustomerFX/SalesLogixGitExtensions/FX.SalesLogix.Modules.GitExtensions.dll"&gt;download the new DLL&lt;/a&gt; and copy it over the old one. Take a look a &lt;a href="http://wiki.github.com/CustomerFX/SalesLogixGitExtensions/installation" target="_blank"&gt;the project wiki for full installation steps&lt;/a&gt;.&lt;br /&gt;&lt;/p&gt;
&lt;img src="http://customerfx.com/aggbug.aspx?PostID=41108" width="1" height="1"&gt;</description><category domain="http://customerfx.com/pages/crmdeveloper/archive/tags/Application+Architect/default.aspx">Application Architect</category><category domain="http://customerfx.com/pages/crmdeveloper/archive/tags/Git/default.aspx">Git</category><category domain="http://customerfx.com/pages/crmdeveloper/archive/tags/Git+Extensions+for+SalesLogix/default.aspx">Git Extensions for SalesLogix</category><category domain="http://customerfx.com/pages/crmdeveloper/archive/tags/Open+Source/default.aspx">Open Source</category><category domain="http://customerfx.com/pages/crmdeveloper/archive/tags/SalesLogix/default.aspx">SalesLogix</category><category domain="http://customerfx.com/pages/crmdeveloper/archive/tags/Source+Control/default.aspx">Source Control</category><category domain="http://customerfx.com/pages/crmdeveloper/archive/tags/Tools/default.aspx">Tools</category></item></channel></rss>