To enable the use of fcinfo (Linux and Mac only - TODO: add Windows instructions) So fcinfo will always print something, no matter of the contents changes. FcStd ( 442 K ) Floor : App :: DocumentObjectGroupPython Floor001 : App :: DocumentObjectGroupPython Floor002 : App :: DocumentObjectGroupPython - Frame : Part :: FeaturePython ( 89 K )Įach FreeCAD file contains a SHA1 checksum number, which will change each time the file is saved, even if no contents was changed. org / licenses / by / 3.0 / - ProgramVersion : 0.17 R7800 ( Git ) - TipName : + ProgramVersion : 0.15 R3989 ( Git ) Uid : 67e62 d8a - 6674 - 4358 - 92 fe - 615443 be887a - Objects : ( 231 ) + Objects : ( 221 ) Annotation : Drawing :: FeatureViewAnnotation Annotation001 : Drawing :: FeatureViewAnnotation Annotation002 : Drawing :: FeatureViewAnnotation Annotation003 : Drawing :: FeatureViewAnnotation - Annotation004 : Drawing :: FeatureViewAnnotation - Annotation005 : Drawing :: FeatureViewAnnotation Array : Part :: FeaturePython ( 9 K ) Box : Part :: Box ( 2 K ) Building : App :: DocumentObjectGroupPython - 110, 7 + 109, 7 Document : / tmp / 43 un09_testhouse. net CreatedBy : Yorik van Havre CreationDate : Fri May 9 12 : 05 : 54 2014 FileVersion : 1 Id : - Label : testhouse - LastModifiedBy : Yorik van Havre - LastModifiedDate : 2016 - 06 - 28 T17 : 05 : 57 - 03 : 00 + Label : testhouse2 + LastModifiedBy : Yorik van Havre + LastModifiedDate : Sat Sep 13 20 : 46 : 36 2014 + License : CC - BY 3.0 LicenseURL : http : // creativecommons. FcStd ( 370 K ) + SHA1 : db1cb5fca18af7bfdca849028f40550df4d845cb Comment : This is a test house to showcase FreeCAD 's BIM worflow and IFC export capabilities Company : uncreated. Please note that this is only visual feedback, a full copy of the file will still be stored internally.ĭiff - git a / testhouse. Git can be told to use the fcinfo utility to print a human-friendly report of a FCStd file, and, when asked to produce a diff between two FCStd files, will produce a diff between the two fcinfo reports instead. This means that you cannot see what has changed between one version and another, and also that each new version stored in the Git repository is a full copy of the file.Īlthough the second problem currently has no solution, the first one can be solved with a little tool available from the FreeCAD source code, called fcinfo. You must do that manually with standard Git tools.Įnabling human-readable diffs for FCStd files with the fcinfo utilityįreeCAD's FCStd file format is a zip-based binary format, for which Git cannot produce proper diffs. The tool cannot change or create branches.(FreeCAD will check if the current document file is inside a Git repository.) You must have an existing local repository already created. The tool cannot create new repositories yet.The Push button will upload your latest commit(s) to the selected remote.If the file currently opened in FreeCAD is being modified by a pull, a warning message will inform you so you can either save the file again or save it elsewhere. The Pull button will download any new changes to the repository from the selected remote.Be sure to write a commit message that describes the changes you are committing. The Commit button will commit the selected files.The Select all button will select all files to be committed.By default a binary diff is made, you have to set up the fcinfo tool for textual diffing.The Diff button will show the differences between the current version of a selected file and the most recent version stored in the repository.After saving your work you have to do a manual refresh. The Refresh button will re-scan the repository for changed files.The Log button will pop up a dialog showing the most recent log entries.This opens up a Task panel in the Combo view.Save the current active document making sure the saved file is inside an existing git repository.Make sure the Report view is open since Git messages will be printed there.On most linux distributions, gitpython is available from the standard software repositories as gitpython or python-git. Prerequisite: To be able to use this command, the gitpython package must be installed on your system. An abundant literature about GIT is available and easy to find on the internet. Git is a complex tool, consider learning the basics of it before using this tool, to avoid wrong operations that can cause data loss. GIT is a powerful file version control system, which can manage different versions of files and keep track of the changes. This command allows to manage the current document with GIT. Starting from FreeCAD v0.17, this tool has been removed from the Arch Workbench and is now part of the external WebTools Workbench that you can install via menu Tools → Addon manager.
0 Comments
Leave a Reply. |