[TYPO3-english] TYPO3 diff

Philipp Gampe typo3.lists at philippgampe.info
Thu Dec 22 03:31:40 CET 2011


Hi Jan,

Jan Bednarik wrote:

> Hi guys,
> 
> I was wondering if it's possible to get a version diff package of TYPO3
> - meaning package of changed files between version (e.g. 4.5.9 and
> 4.5.10).
> 
> The reason I'm asking is that for most my webhostings I have only simple
> FTP access and uploading whole TYPO3 just because of a few files that
> have changed is waste of time.
> 
> I bet there's a git command or something like that, but I don't know git.

Yes, but we need to do this for the core and then for all submodules.
So each of the following commands have to be run inside
$ git submodule foreach "......." too.
Then this list has to be compiled and maybe the package created.

I wunder whether using 
$ rysnc -rvn --exclude=.git --delete-after --checksum TYPO3_4-5-10 
TYPO3-4-5-9 
might be easier to use. But then you need two clones.

For modified or added files

$ git diff --name-only  --diff-filter=MA TYPO3_4-5-9 TYPO3_4-5-10 |cat
ChangeLog
t3lib/class.t3lib_refindex.php
t3lib/class.t3lib_sqlparser.php
t3lib/class.t3lib_stdgraphic.php
t3lib/class.t3lib_userauth.php
t3lib/config_default.php
typo3/class.db_list_extra.inc
typo3/stylesheets/install/install.css
typo3/sysext/cms/tslib/class.tslib_menu.php
typo3/sysext/em/classes/connection/class.tx_em_connection_extdirectserver.php
typo3/sysext/em/classes/install/class.tx_em_install.php
typo3/sysext/impexp/app/index.php
typo3/sysext/install/Resources/Public/Stylesheets/general.css
typo3/sysext/install/Resources/Public/Stylesheets/ie7.css
typo3/sysext/install/Resources/Public/Stylesheets/install.css
typo3/sysext/install/Resources/Public/Stylesheets/install_123.css
typo3/sysext/install/Resources/Public/Stylesheets/install_login.css
typo3/sysext/install/Resources/Public/Stylesheets/reset.css
typo3/sysext/rsaauth/hooks/class.tx_rsaauth_loginformhook.php
typo3/sysext/rtehtmlarea/class.tx_rtehtmlarea_base.php
typo3/sysext/sv/class.tx_sv_auth.php


for deleted files:

$ git diff --name-only  --diff-filter=D TYPO3_4-5-7 TYPO3_4-5-10 |cat
typo3/sysext/linkvalidator/ChangeLog
typo3/sysext/linkvalidator/classes/class.tx_linkvalidator_processor.php
typo3/sysext/linkvalidator/classes/linktype/class.tx_linkvalidator_linktype_abstract.php
typo3/sysext/linkvalidator/classes/linktype/class.tx_linkvalidator_linktype_external.php
typo3/sysext/linkvalidator/classes/linktype/class.tx_linkvalidator_linktype_file.php
typo3/sysext/linkvalidator/classes/linktype/class.tx_linkvalidator_linktype_interface.php
typo3/sysext/linkvalidator/classes/linktype/class.tx_linkvalidator_linktype_internal.php
typo3/sysext/linkvalidator/classes/linktype/class.tx_linkvalidator_linktype_linkhandler.php
typo3/sysext/linkvalidator/classes/tasks/class.tx_linkvalidator_tasks_validator.php
typo3/sysext/linkvalidator/classes/tasks/class.tx_linkvalidator_tasks_validatoradditionalfieldprovider.php
typo3/sysext/linkvalidator/doc/manual.sxw
typo3/sysext/linkvalidator/doc/manual.txt
typo3/sysext/linkvalidator/ext_autoload.php
typo3/sysext/linkvalidator/ext_emconf.php
typo3/sysext/linkvalidator/ext_icon.gif
typo3/sysext/linkvalidator/ext_localconf.php
typo3/sysext/linkvalidator/ext_tables.php
typo3/sysext/linkvalidator/ext_tables.sql
typo3/sysext/linkvalidator/locallang.xml
typo3/sysext/linkvalidator/modfuncreport/class.tx_linkvalidator_modfuncreport.php
typo3/sysext/linkvalidator/modfuncreport/locallang.xml
typo3/sysext/linkvalidator/modfuncreport/locallang_csh.xml
typo3/sysext/linkvalidator/modfuncreport/locallang_mod.xml
typo3/sysext/linkvalidator/modfuncreport/mod_template.html
typo3/sysext/linkvalidator/res/linkvalidator.css
typo3/sysext/linkvalidator/res/mailtemplate.html
typo3/sysext/linkvalidator/res/pagetsconfig.txt

for copied, renamed and otherwise changed files, this is more difficult as 
we need to know what happend to those files:

$ git diff --name-status   --diff-filter=CRT TYPO3_4-5-0 TYPO3_4-5-10 |cat
R059	typo3/sysext/workspaces/Classes/Service/Fehooks.php	
t3lib/utility/class.t3lib_utility_versionnumber.php
R100	typo3/js/extjs/PluploadWindow.js	
typo3/contrib/codemirror/VERSION_0.94
R100	typo3/contrib/codemirror/unittests.js	
typo3/contrib/codemirror/js/unittests.js
C073	typo3/sysext/adodb/adodb/drivers/adodb-sqlite.inc.php	
typo3/sysext/adodb/adodb/drivers/adodb-sqlite3.inc.php
R050	typo3/sysext/dbal/lib/class.tx_dbal_tsparserext.php	
typo3/sysext/cms/tslib/content/class.tslib_content_phpscriptexternal.php
R099	
typo3/sysext/em/classes/exception/class.tx_em_connection_exception.php	
typo3/sysext/em/classes/exception/class.tx_em_connectionexception.php
R099	
typo3/sysext/em/classes/exception/class.tx_em_extensionimport_exception.php	
typo3/sysext/em/classes/exception/class.tx_em_extensionimportexception.php
R099	
typo3/sysext/em/classes/exception/class.tx_em_extensionxml_exception.php	
typo3/sysext/em/classes/exception/class.tx_em_extensionxmlexception.php
R099	
typo3/sysext/em/classes/exception/class.tx_em_mirrorxml_exception.php	
typo3/sysext/em/classes/exception/class.tx_em_mirrorxmlexception.php
R099	typo3/sysext/em/classes/exception/class.tx_em_xml_exception.php	
typo3/sysext/em/classes/exception/class.tx_em_xmlexception.php
R067	
typo3/sysext/extbase/Classes/Domain/Repository/FrontendUserRepository.php	
typo3/sysext/em/interfaces/interface.tx_em_renderhook.php
C084	
t3lib/js/extjs/components/pagetree/javascript/Ext.ux.state.TreePanel.js	
typo3/sysext/em/res/js/ux/TreeState.js
R100	typo3/sysext/t3skin/images/icons/places/folder-opened.png	
typo3/sysext/t3skin/images/icons/apps/filetree-folder-opened.png



And now with rsync:

$ rsync -rvn --exclude=.git --exclude=.idea --checksum --delete-after 
TYPO3_4-5-9 TYPO3_4-5-10
building file list ... done
ChangeLog
t3lib/class.t3lib_refindex.php
t3lib/class.t3lib_sqlparser.php
t3lib/class.t3lib_stdgraphic.php
t3lib/class.t3lib_userauth.php
t3lib/config_default.php
typo3/class.db_list_extra.inc
typo3/stylesheets/install/install.css
typo3/sysext/cms/tslib/class.tslib_menu.php
typo3/sysext/em/classes/connection/class.tx_em_connection_extdirectserver.php
typo3/sysext/em/classes/install/class.tx_em_install.php
typo3/sysext/impexp/app/index.php
typo3/sysext/install/Resources/Public/Stylesheets/general.css
typo3/sysext/install/Resources/Public/Stylesheets/ie7.css
typo3/sysext/install/Resources/Public/Stylesheets/install.css
typo3/sysext/install/Resources/Public/Stylesheets/install_123.css
typo3/sysext/install/Resources/Public/Stylesheets/install_login.css
typo3/sysext/install/Resources/Public/Stylesheets/reset.css
typo3/sysext/rsaauth/hooks/class.tx_rsaauth_loginformhook.php
typo3/sysext/rtehtmlarea/class.tx_rtehtmlarea_base.php
typo3/sysext/sv/class.tx_sv_auth.php

sent 190718 bytes  received 87 bytes  381610.00 bytes/sec
total size is 47400650  speedup is 248.42 (DRY RUN)


And between 4.5.8 and 4.5.9
$ rsync -rvn --exclude=.git --exclude=.idea --checksum --delete-after 
TYPO3_4-5-8 TYPO3_4-5-9
building file list ... done
.gitmodules
ChangeLog
t3lib/class.t3lib_div.php
t3lib/class.t3lib_page.php
t3lib/class.t3lib_tceforms.php
t3lib/config_default.php
t3lib/tceforms/class.t3lib_tceforms_suggest.php
typo3/sysext/belog/mod/index.php
typo3/sysext/beuser/mod/index.php
typo3/sysext/cms/tslib/media/scripts/plaintextLib.inc
typo3/sysext/em/res/js/em_components.js
typo3/sysext/impexp/class.tx_impexp.php
typo3/sysext/install/mod/class.tx_install.php
typo3/sysext/linkvalidator/.gitignore
typo3/sysext/reports/reports/locallang.xml
typo3/sysext/reports/reports/status/class.tx_reports_reports_status_securitystatus.php
typo3/sysext/rtehtmlarea/class.tx_rtehtmlarea_base.php
typo3/sysext/t3skin/stylesheets/structure/module_menu.css
typo3/sysext/t3skin/stylesheets/visual/element_tceforms.css
typo3/sysext/workspaces/ext_emconf.php
typo3/sysext/workspaces/Classes/Controller/AbstractController.php

Best regards
-- 
Philipp Gampe


More information about the TYPO3-english mailing list