Pl/FGAddon: Difference between revisions

Jump to navigation Jump to search
Line 281: Line 281:
Spowoduje to otwarcie edytora umożliwiającego napisanie informacyjnego komunikatu dziennika zatwierdzeń. Zatwierdzenie jest lokalne i nie zostanie wysłane do FGAddon.
Spowoduje to otwarcie edytora umożliwiającego napisanie informacyjnego komunikatu dziennika zatwierdzeń. Zatwierdzenie jest lokalne i nie zostanie wysłane do FGAddon.


==== Dedicated FGAddon branch ====
==== Dedykowana gałąź FGAddon ====
In the examples above, only a single branch was assumed in the repository.  If interaction with a remote git repository or branching within the local git repository is desired, then a different strategy is required.  The reason being that the branch that synchronises with FGAddon must [https://git-scm.com/book/en/v1/Git-and-Other-Systems-Git-and-Subversion#git-svn preserve a linear history].  This means only cherry-picking of the desired changes into that branch is allowed.


In this example, two branches will be set up in the local git repository:
W powyższych przykładach założono tylko jedną gałąź w repozytorium. Jeśli pożądana jest interakcja ze zdalnym repozytorium git lub rozgałęzienie w lokalnym repozytorium git, wymagana jest inna strategia. Powodem jest to, że gałąź, która synchronizuje się z FGAddon musi [https://git-scm.com/book/en/v1/Git-and-Other-Systems-Git-and-Subversion#git-svn zachować liniową historię]. Oznacza to, że dozwolone jest tylko wybieranie pożądanych zmian do takiej gałęzi.
* <code>fgaddon</code>:  This branch will be dedicated for FGAddon synchronisation and will preserve a linear history.
* <code>master</code>:  A master branch for aircraft development, allowing for mergers and other non-linear history operations.


Assuming a [[#Cloning_a_single_aircraft|newly cloned repository]], create the <code>fgaddon</code> branch with:
W tym przykładzie w lokalnym repozytorium git zostaną utworzone dwie gałęzie:
* <code>fgaddon</code> - ta gałąź będzie przeznaczona do synchronizacji FGAddon i zachowa liniową historię.
* <code>master</code> - główna gałąź do rozwoju statków powietrznych, pozwalająca na scalanie i inne nieliniowe operacje historyczne.
 
Zakładając [[#Klonowanie_pojedynczego_statku_powietrznego|nowo sklonowane repozytorium]], utwórz gałąź <code>fgaddon</code> z:
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
git branch fgaddon
git branch fgaddon
</syntaxhighlight>
</syntaxhighlight>


And switch to that branch:
I przełącz się na tę gałąź:
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
git checkout fgaddon
git checkout fgaddon
</syntaxhighlight>
</syntaxhighlight>


The FGAddon synchronisation can then be performed on this branch. To pull in the developments from the master branch, use cherry-picking to apply a sequentially ordered list of commit hashes:
Synchronizacja FGAddon może być następnie wykonana na tej gałęzi. Aby pobrać zmiany z gałęzi głównej, użyj cherry-pick, aby zastosować sekwencyjnie uporządkowaną listę skrótów zatwierdzeń:
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
git cherry-pick <commit hash 1>
git cherry-pick <commit hash 1>
Line 306: Line 307:
</syntaxhighlight>
</syntaxhighlight>


To see the list of commits to be sent to FGAddon prior to dcommitting, type:
Aby wyświetlić listę zatwierdzeń, które zostaną wysłane do FGAddon przed zatwierdzeniem, wpisz:
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
git log git-svn..HEAD
git log git-svn..HEAD
</syntaxhighlight>
</syntaxhighlight>


And to see the changes as a single diff:
I aby zobaczyć zmiany jako pojedynczy diff:
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
git diff git-svn..HEAD
git diff git-svn..HEAD
1,361

edits

Navigation menu