Avoid marking files as modified by Git when there are no changes

Hello,
I am working on a project using Visual Studio 2013 Ultimate and Enterprise Architect 9.0 (a UML tool). I am using Git for Source Control in Visual Studio.
I have set up the programs so that I can synchronize code from Enterprise Architect (EA) to Visual Studio (VS) and vice versa using MDG Link for Visual Studio (an Enterprise Architect add-in). I first synchronized all the existing code from VS to EA.
Now I have the following workflow:
Create UML models in EA;
Add necessary attributes and operations to the class models;
Synchronize models with the code, which will add the added attributes and operations to my source;
The last step will regenerate all my source code files, but even if there are no changes Git marks the files as modified.
How can I avoid this behaviour, because now all my files are modified when Enterprise Architect synchronizes the model with the source code.
I only want Git to mark it as modified when there are actually things added or modified in the file.
Any help will be appreciated.
Marcel

Hi,
I think it's more VS which detect the file was modified, and by default it mark the file as modified in Git. 
But normally when you want to commit your work these files are removed because Git detect the files are not really changed.
Did you try to refresh the pending changes in the team explorer (F5). Perhaps Git recalculate all the differences, and then detect the real changes.
Regards,
Yan Grenier
Merci de bien vouloir "Marquer comme réponse", les réponses qui ont répondues à votre question, et de noter les réponses que vous avez trouvé utiles.

Similar Messages

  • Save changes when there are no changes

    Why is it that when I open a subvi and close it making absolutely no changes, I'm prompted to 'save changes'?

    Hi wb2nvy,
    "Why would anyone NOT want to include the subvis when the main vi is recompiled to a newer version?"
    Maybe you have linked to subVIs also used with the older LV version and so don't want to save subVIs automatically?
    As said before: no other IDE I know of automatically saves referenced files to a newer version...
    And:
    You should get asked to save subVIs before closing the mainVI. You always have the option to save them. You always are presented with reason why LV wants to save. You always have to decide between saving or not saving... You always have the mass compile option.
    It's your duty to decide when to upgrade VIs - LV will and cannot take that decision!
    Message Edited by GerdW on 06-02-2010 04:37 PM
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How to suppress 'Do u want to save the changes?'  When there are no changes

    Hi All,
    I have developed one form,which contains 3 blocks in that 2 are database blocks and one is control block.It's working fine.When I close the form without doing any change also it is showing an alert as 'Do you want to save the changes you have made?'. How can I suppress that alert when I haven't made any change to the form.
    I am displaying one filed in the database block as 'null' until check box is checked.For that I have written code in when-new-block-instance trigger of that block.
    There I wrote SET_RECORD_PROPERTY (GET_BLOCK_PROPERTY (:SYSTEM.TRIGGER_BLOCK, CURRENT_RECORD), :SYSTEM.TRIGGER_BLOCK, STATUS, QUERY_STATUS); also to change the block status as query.
    But it is not working, still I am getting the alert,How can I solve this could anyone please give me a suggestion..
    Thanks in advance.

    So, this functionality can be done through CHECK BOX itself. Why you are making null by WHEN-NEW-BLOCK-INSTANCE. You can just set the update and insert property for that fields and rest things you can control from chexbox. And WHEN-BLOCK-INSTANCE-TRIGGER will fire once when you will access that block. If you want to set the same functionality for each record. Then you must use WHEN-NEW-RECORD-INSTANCE. for ex.
    Trigger = WHEN-NEW-RECORD-INSTANCE (BLOCK-LEVEL)
    Here i will assume that if check box is checked then he can update that fields.
    IF :CHECKBOX='Y' THEN
      SET_ITEM_PROPERTY('BLOCK_NAME.ITEM_NAME',INSERT_ALLOWED,PROPERTY_TRUE);
      SET_ITEM_PROPERTY('BLOCK_NAME.ITEM_NAME',UPDATEABLE,PROPERTY_TRUE);
    ELSE
      SET_ITEM_PROPERTY('BLOCK_NAME.ITEM_NAME',INSERT_ALLOWED,PROPERTY_FALSE);
      SET_ITEM_PROPERTY('BLOCK_NAME.ITEM_NAME',UPDATEABLE,PROPERTY_FALSE);
    END IF;In the above code no need for set value to NULL.
    And on CHECK BOX you can write like this...
    Trigger WHEN-CHECKBOX-CHANGED (ITEM-LEVEL)
    IF :CHECKBOX='Y' THEN
      SET_ITEM_PROPERTY('BLOCK_NAME.ITEM_NAME',INSERT_ALLOWED,PROPERTY_TRUE);
      SET_ITEM_PROPERTY('BLOCK_NAME.ITEM_NAME',UPDATEABLE,PROPERTY_TRUE);
    ELSE
      :FIELD_NAME:=NULL;  -- here if check box is unchecked then it will set value to NULL
      SET_ITEM_PROPERTY('BLOCK_NAME.ITEM_NAME',INSERT_ALLOWED,PROPERTY_FALSE);
      SET_ITEM_PROPERTY('BLOCK_NAME.ITEM_NAME',UPDATEABLE,PROPERTY_FALSE);
    END IF;-Ammad

  • Getting: Do you want to save changes? When there are no changes?

    Forms [32 Bit] Version 10.1.2.3.0 (Production)
    Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
    I have a form that always prompts me if I want to save changes after querying a record and then exiting or trying a new query. I cannot figure out what changes it is asking if I want to save as nothing has been changed on the form. Is there a way to track what is causing this or where it is coming from?

    Are the "Non-Database" items part of a base table block? If so, when you assign a value to these items - even though they are non-database items - Forms will record that the something in >the block has changed. Hi Craig, thats not true. You can change non-db-items in a base-table-block without the record-status beeing changed. Changeing the record-status only happens when the property "Lock record" is set to true, or if there is a WHEN-VALIDATE-ITEM-trigger on the non-db-item which changes a db-item.
    You should always have put non-base table items in a Control Block.Thats also not true. You have non-base-table-items in nearly every basetable-block, think of all the lookup-items. How would you synchronize records in your db-block and your control-block?

  • When I OCR two versions of the same document and then compare th documents in Acrobat Pro XI, I usually get the message that there are no changes to mark.  However, I know there a quite a few number of changes.  I raised this question more than a year ago

    When I OCR two versions of the same document and then compare the documents in Acrobat Pro XI, I usually get the message that there are no changes to mark.  However, I know there a quite a few number of changes.  I raised this question more than a year ago, and the response I received had to do with the quality of the OCR and the scans of the documents.  However, if I use Acrobat Pro XI to save the same documents in Word and then run a comparison in Word all of the changes are marked.  When a PDF is saved as a Word document in Acrobat Pro XI, is a different OCR module being used than the one used in Acrobat Pro XI for text recognition?

    OCR is only for recoginition of the image / picture of text provided by an scanner.
    Content typed into a Word file which is converted to a PDF is (in Word and in PDF) *not* an image  or picture of text - it is the digital text. So, no OCR involved.
    When the "digital" (renderable) text of a PDF's page content is exported to Word no OCR is involved.
    When a PDF's content is from the image output of a scanner and this is a picture of text then OCR comes into play.
    If this content is exported to Word before doing OCR then it is the image that is exported to the Word file.
    Once OCR is performed it is the OCR output that is exported.
    OCR output is (always will be) impacted by "the quality of the OCR and the scans of the documents". 
    Regardless "Compare" is based on a Word file output to PDF1 then edits to the Word file followed by an output to PDF2. You use Acrobat Pro to do a compare of PDF1 & PDF2.
    Paper 1 scanned to image 1 to image 1 in PDF1 that gets OCR 1 and
    Paper 2 scanned to image 2 to image 2 in PDF2 that gets OCR 2
    being processed with Acrobat Pro's Compare can certainly be done.
    But - well you've described what can be observed.
    Be well...

  • I can't back up my iPhone4.  When was I syncing, My computer hang. I restart computer. Itune told me there is an error, delete the back up file and try again. But there are no back up file to delete in preference-device. Please help!

    I can't back up my iPhone4.  When was I syncing, My computer hang. I restart computer. Itune told me there is an error, delete the back up file and try again. But there are no back up file to delete in preference-device. Please help!

    Thank you for answering my question. If I reinstall itune, is it mean that I need to install music, apps, video...everything in itune again? also intall everything in my iphone again?

  • How to prevent mail app on OS X & iOS from automatically marking email messages as read just when they are selected either intentionally or not

    Good morning guys
    is there a way to prevent mail app on OS X & iOS from automatically marking email messages as read just when they are selected either intentionally or not
    thanks

    On OS X, You are able to hide the preview window on the right in normal mode, or on the lower side in classic mode, by simply putting your cursor on the thin bar which is in between, and then make it as small as possible, so it goes away.
    Then your messages won't be automatically read when clicked once, but only if you click them twice and a new window with the message opens.
    Also, you are able to mark them as unread again, which is a silly workaround, but possible.
    You can do that by right clicking and select 'Mark as...' -> unread.
    On iOS, I'm not sure..

  • I have just owned a macbook pro and trying to learn things since i have all along used windows laptop. My first question is : when there are two files i am working together, one above the other on screen, how you switch over between the two with key ?

    I have just owned a macbook pro and trying to learn things since i have all along used windows laptop. My first question is : when there are two files i am working together, one above the other on screen, how you switch over between the two with key ?

    Hi...
    Mac OS X keyboard shortcuts
    Control-F4
    Move focus to the active (or next) window
    Shift-Control-F4
    Move focus to the previously active window
    By the way...  since you are new to Mac, click a clear space on your Desktop. You should see "Finder" top left corner of the screen in the menu bar.
    Click Help then click Help Center
    As an example type in    keyboard shortcuts
    You can use the Help menu for almost any application on your Mac.
    Apple - Find Out How - Mac Basics
    For held switching from PC to Mac >  Apple - Support - Switch 101

  • AdminExplorer won't automatically resize when there are lots of folders

    Hello
    On one of my portal pages there is an iView based on a modified AdminExplorer layout set.  It is modified so that the folders are not displayed in the main area - only in the left hand tree area.
    The iView is set to automatically resize.  So when there are more files, the iView gets bigger instead of scrolling.
    However, when the size of the folder tree increases (e.g. by opening subfolders in the tree area), the iView does not resize.  Instead, a scroll bar appears for the tree area.
    Does anyone know how I can fix this?

    Why can't you use the Weblogic startup class to start your
    client automatically when WebLogic Server starts ?
    What version of Weblogic Server are you running ?

  • How to change the default JRE when there are several version of JRE in Sys

    How to change the default JRE when there are several version of JRE in System?
    i have installed j2sdk1.5.0 then installed j2ee1.4,then installed Weblogic6.1 which use jdk1.3
    Now the JRE is jdk1.3\bin
    When run class that was compiled with jdk1.5,throw:
    java.lang.UnsupportedClassVersionError
    How can i change the jre to 1.5?

    There is a workaround to move from 1.5 version to the older 1.4 version. But this could be specific to the browser setting the JRE version.
    Excerpts from sun docs:
    However, a user can still run older versions. To do so, launch the Java Plug-in Control Panel for the older version, then (re)select the browser in the Browser tab.
    Example:
    Assume you are running on Microsoft Windows with Microsoft Internet Explorer, have first installed version 1.4.2, then version 5.0, and you want to run 1.4.2.
    Go to the j2re1.4.2\bin directory where JRE 1.4.2 was installed. On a Windows default installation, this would be here: C:\Program Files\Java\j2re1.4.2\bin
    Double-click the jpicpl32.exe file located there. It will launch the control panel for 1.4.2.
    Select the Browser tab. Microsoft Internet Explorer might still appear to be set (checked). However, when 5.0 was installed, the registration of the 1.4.2 JRE with Internet Explorer was overwritten by the 5.0 JRE.
    If Microsoft Internet Explorer is shown as checked, uncheck it and click Apply. You will see a confirmation dialog stating that browser settings have changed.
    Check Microsoft Internet Explorer and click Apply. You should see a confirmation dialog.
    Restart the browser. It should now use the 1.4.2 JRE for conventional APPLET tags.
    Details are here
    http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/jcp.html
    My system (Windows XP) has the version 1.5_09 set as the default. However i just installed JRE 1.5_06 and would like to revert back to _06 as the default JRE..
    Will update if i find more information

  • Joining 2 related records using PL SQL in Apex - Problems when there are more than 2 related records?

    Hi
    I am combining 2 related records of legacy data together that make up a marriage record.  I am doing this in APEX using a before header process using the following code below which works well when there are only 2 related records which joins the bride and groom record together on screen in apex.  I have appended a field called principle which is set to 'Y' for the groom and 'N' for the bride to this legacy data
    However there are lots of records where in some instances there are 3, 4 , 5, 6 or even 1 record which causes the PL/SQL in APEX to not return the correct data.  The difference in these related columns is that the name of the bride or groom could be different but it is the same person, its just that from the old system if a person had another name or was formally known as they would create another duplicate record for the marriage with the different name, but the book and entry number is the same as this is unique for each couple who get married.
    How can I adapt the script below so that if there are more than 2 records that match the entry and book values then it will display a message or is there a better possible work around?  Cleaning the data would be not an option as there are thousands of rows of where these occurrences occur
    declare 
         cursor c_mar_principle(b_entry in number, b_book in varchar2) 
         is 
              select DISTINCT  id, forename, surname, marriagedate, entry, book,  formername, principle
              from   MARRIAGES mar 
              where  mar.entry   = b_entry
              and    mar.book = b_book
              order by principle desc, id asc; 
         rec c_mar_principle%rowtype;
    begin 
    open c_mar_principle(:p16_entry,:p16_book)  ;
    fetch c_mar_principle into rec;
    :P16_SURNAME_GROOM   := rec.surname; 
    :P16_FORNAME_GROOM   := rec.forename;
                   :P16_ENTRY := rec.entry; 
                   :P16_BOOK :=rec.book;
    :P16_FORMERNAME :=rec.formername;
    :P16_MARRIAGEDATE :=rec.marriagedate;
    :P16_GROOMID  := rec.id;
    fetch c_mar_principle into rec;
    :P16_SURNAME_BRIDE   := rec.surname; 
    :P16_FORNAME_BRIDE   := rec.forename;
                   :P16_ENTRY := rec.entry; 
                   :P16_BOOK :=rec.book;
    :P16_FORMERNAME :=rec.formername;
    :P16_MARRIAGEDATE :=rec.marriagedate;
    :P16_BRIDEID  := rec.id;
    close c_mar_principle;
    end;

    rambo81 wrote:
    True but that answer is not really helping this situation either?
    It's indisputably true, which is more than can be said for the results of querying this data.
    The data is from an old legacy flat file database that has been exported into a relational database.
    It should have been normalized at the time it was imported.
    Without having to redesign the data model what options do I have in changing the PL/SQL to cater for multiple occurances
    In my professional opinion, none. The actual problem is the data model, so that's what should be changed.

  • Displaying a message when there are no results from an XSL Query

    Using MM_XSLTransform.class.php
    I am querying an XML file to produce a list of places whose town name or address match a letter of the alphabet. The letter is passed as a variable in a URL.
    XSL:
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <xsl:param name="letter"/>
    <xsl:output method="html" encoding="UTF-8"/>
    <xsl:template match="/">
    <xsl:for-each select="dataroot/CPINFOWEB[Town=starts-with(Town, $letter) or Name=starts-with(Name, $letter)]">
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
            <td>
        <a href="detail.php?park={CostCode}"><xsl:value-of select="Name"/></a><br />
              <a href="detail.php?park={CostCode}"><xsl:value-of select="Town"/></a><br />
          <xsl:value-of select="Address"/><br />
          <br />    
          </td>
            </tr>
          </table>
          </xsl:for-each>
    </xsl:template>
    </xsl:stylesheet>
    Destination PHP file:
    setXML("../regions/CPINFOWEB-mobile.xml"); $mm_xsl->setXSL("list.xsl"); $mm_xsl->addParameter("letter",$_GET['letter']); echo $mm_xsl->Transform(); ?> 
    The result Name and Town are displayed as a URL to link to a "more details" page.
    All works fine, but when there are no results for a letter of the alphabet I obviously get a blank page.
    How do I display a "no results" message instead

    I deleted my original reply because the formatting of the XSL code was messed up by the forum. Here's trying again:
    Your current code creates a new table for each result. The opening and closing <table> tags should be outside the the <for-each> loop. To deal with the possibility of no results being found, use a conditional statement and the count() function like this:
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <xsl:param name="letter"/>
    <xsl:output method="html" encoding="UTF-8"/>
    <xsl:template match="/">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <xsl:for-each select="dataroot/CPINFOWEB[Town=starts-with(Town, $letter) or Name=starts-with(Name, $letter)]">
            <tr>
            <td>
        <a href="detail.php?park={CostCode}"><xsl:value-of select="Name"/></a><br />
              <a href="detail.php?park={CostCode}"><xsl:value-of select="Town"/></a><br />
          <xsl:value-of select="Address"/><br />
          <br />    
          </td>
            </tr>
    </xsl:for-each>
    <xsl:if test="count(dataroot/CPINFOWEB/Town) &amp;lt; 1">
        <tr>
        <td>No records found</td>
        </tr>
        </xsl:if>
    </table>
    </xsl:template>
    </xsl:stylesheet>

  • [svn:fx-trunk] 10867: FIx up createInFontContext for when there are no embedded fonts

    Revision: 10867
    Author:   [email protected]
    Date:     2009-10-05 09:50:12 -0700 (Mon, 05 Oct 2009)
    Log Message:
    FIx up createInFontContext for when there are no embedded fonts
    QE Notes: None
    Doc Notes: None
    Bugs: SDK-23563
    Reviewer: Carol
    API Change: Yes
    Is noteworthy for integration: No
    tests: checkintests
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-23563
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as

  • How to replace sky when there are trees in the photo

    I have several photos taken outdoors with a dull sky. I also have several sky shots to supply the blue sky; with or without clouds. I know a couple of ways to do  that --as long as the horizon line is clear, such as roofs, etc.  My preferred method is to use a tool; e.g., Magic Wand, to select the sky area and then copy/paste a blue sky image using Ctrl+Shift+V command. This makes the copied sky inserted into the original image and I'm happy with the results.
    But when there are trees or other bushes between the camera and the sky, problems begin.  No matter how carefully I try to include all the "holes" in those trees, the end result contains white spots where the selected section failed to follow the tree "holes".  Anybody know how to fix these types of problems?  I am somewhat familiar with layers-- which I have tried to use to solve this problem.
    Using PSE-12 on Windows 8.1
    TIA,
    Pete Grant

    Pete,
    There are several ways to do this. In my experience the Alibony technique works well. You will be able to use your "good" sky pictures:
    Watch Lesson 12: Quick Colorless Sky Replacement | Alibony Lessons for Photoshop Elements Episodes | How To Videos | Bli…
    As I pointed out to you on June 5, 2014, this is how I do it after watching the Alibony video.
    Open your picture (A) (File>open), and open the replacement sky picture (B)
    On the sky picture (B), go to Select>all from the menu, then Edit>copy to place it on the clipboard
    Go back to your picture (A), then Edit>paste. The new sky (B) should come in on a new layer
    With the move tool, use the corner handles to reduce the size of the sky (B) to cover the old sky on (A)
    In the layers palette, set the blending mode of (B) to darken
    Set the foreground color chip to white
    Get the Gradient tool out of the toolbox, and drag a foreground to transparent, linear gradient from below up to the top of the tree line, while holding down the shift key.
    With a soft white brush, at reduced opacity, gently paint the horizon a bit, as we want the horizon to be a tad lighter than the rest of the sky.
    If necessary, add a few clouds with the Return to Eden set.

  • How to backup a rootenv when there are subfolders with DBs?

    Hello,
    Is there any way to hotbackup a rootenv with databases when there are subfolders with databases?
    When I run a hotbackup (with db_hotbackup) on my rootenv, it only backups databases from the root of my rootenv. But, in that root directory, I have some subdirectories with databases too.
    Thank you.

    Hi,
    If you have root directory as : */your/root/dir*
    and within that you have folders like : */your/root/dir/sub1* and */your/root/dir/sub2* and would want to backup the db files in */your/backup/dir* then, you should invoke db_hotbackup as
    db_hotbackup -cv -b /your/backup/dir -h /your/root/dir -d ../dir/sub1 -d ../dir/sub2
    Regards,
    Debsubhra Roy

Maybe you are looking for

  • Function module for creation of service notification in R/3

    hi, Can anyone plz tell me is there any function module available in CRM that will create service notification in R/3??

  • Mail issues on macbook pro

    I recently got a macbook pro and was setting up my mail and when I set up my accounts I do not have access to the mail folders and mail will not delete.  I have an iPad and iPhone and my hotmail accounts when I delete on one device its gone on the ot

  • InputText loosing value after setting required="true"

    Hi Folks, 'myBean' is request scope bean. I have a problem here with the inputText tag in edit.jsp <h:inputText value="#{myBean.name}" id="name" required="true"/> <h:message for="name"/> When i click the 'Update' CommandLink without entering the valu

  • Usb short in PB Ti

    I was just troubleshooting a powerbook Ti that refused to turn on at all. The culprit was a broken USB port where the middle plastic flap had fallen off and the pins were bent. The bent pin was making contact with the outer shell (ground?) of the por

  • BI Publisher Performance integrated with OBIEE 11g

    Has anyone seen issues around the performance of rendering the BI Publisher frame when it is integrated with an OBIEE dashboard (11g)? If I create a simple BI Publisher off a simple data model (Select 1 from dual). I open the BIP report within the BI