Pl/FGAddon: Difference between revisions

Jump to navigation Jump to search
Line 889: Line 889:
Zmiany w nowym repozytorium będą widoczne za pośrednictwem interfejsu internetowego pod adresem {{#tag:span|{{#tag:tt|{{#tag:nowiki|{{sourceforge url|user=<username>|repo=code-<aircraft>|branch=master}}}}}}| style="color: blue"}}.
Zmiany w nowym repozytorium będą widoczne za pośrednictwem interfejsu internetowego pod adresem {{#tag:span|{{#tag:tt|{{#tag:nowiki|{{sourceforge url|user=<username>|repo=code-<aircraft>|branch=master}}}}}}| style="color: blue"}}.


=== Sending external git repository changes into FGAddon ===
=== Wysyłanie zmian z zewnętrznego repozytorium git do FGAddon ===


{{Note|Development scenarioYou are an individual developer with FGAddon commit access and wish to transfer the commits in a remote git repository into FGAddon using a temporary local git repository.}}
{{Note|ScenariuszJesteś indywidualnym programistą z dostępem do zatwierdzeń FGAddon i chcesz przenieść zatwierdzenia wykonane w zdalnym repozytorium git do FGAddon przy użyciu tymczasowego lokalnego repozytorium git.}}


Firstly clone the FGAddon aircraft into a local git-svn repository with:
Najpierw sklonuj statek powietrzny FGAddon do lokalnego repozytorium git-svn za pomocą:
{{#tag:syntaxhighlight|
{{#tag:syntaxhighlight|
{{fgaddon source|cmd=git svn clone|protocol=svn+ssh|login=<username>|type=svn|path=Aircraft/<aircraft>|full=1}}
{{fgaddon source|cmd=git svn clone|protocol=svn+ssh|login=<username>|type=svn|path=Aircraft/<aircraft>|full=1}}
Line 899: Line 899:
}}
}}


This will create a new local git repository linked to FGAddon via git-svn.  If the aircraft is new and not present in FGAddon, see the [[#New_aircraft|instructions for adding a new aircraft to FGAddon]].  Next, set up the remote git repository as a remote, and fetch it:
Spowoduje to utworzenie nowego lokalnego repozytorium git połączonego z FGAddon przez git-svn.  Jeśli statek powietrzny jest nowy i nie ma go w FGAddon, zobacz [[#Nowy_statek_powietrzny|instrukcje dodawania nowego statku powietrznego do FGAddon]].  Następnie skonfiguruj zdalne repozytorium git jako zdalne i pobierz je:
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
git remote add <name> <url>
git remote add <name> <url>
Line 905: Line 905:
</syntaxhighlight>
</syntaxhighlight>


Where <code><url></code> is the URL of the remote git repository. Finally make an ordered list of all hashes of the commits to be sent into FGAddon, from earliest to latest, and cherry-pick them into the git-svn master branch:
Gdzie <code><url></code> to adres URL zdalnego repozytorium git. Na koniec utwórz uporządkowaną listę wszystkich skrótów zatwierdzeń, które mają zostać wysłane do FGAddon, od najwcześniejszego do najpóźniejszego, i wybierz je ("cherry-picknij" je) do głównej gałęzi git-svn:
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
git cherry-pick <commit hash 1>
git cherry-pick <commit hash 1>
Line 913: Line 913:
</syntaxhighlight>
</syntaxhighlight>


Note that the git-svn local repository should only have a single <code>master</code> branch and only consist of cherry-picking.  To see the changes queued for sending to FGAddon:
Należy pamiętać, że lokalne repozytorium git-svn powinno mieć tylko jedną gałąź <code>master</code> i składać się tylko z cherry-picking.  Aby zobaczyć zmiany w kolejce do wysłania do FGAddon:
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
git log git-svn..HEAD
git log git-svn..HEAD
Line 919: Line 919:
</syntaxhighlight>
</syntaxhighlight>


Then to send the changes to FGAddon, firstly pull in any remote changes, and send the commits:
Następnie, aby wysłać zmiany do FGAddon, należy najpierw pobrać wszelkie zdalne zmiany i wysłać zatwierdzenia:
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
git svn rebase
git svn rebase
Line 925: Line 925:
</syntaxhighlight>
</syntaxhighlight>


The temporary local repository can then be deleted.
Następnie można usunąć tymczasowe repozytorium lokalne.


=== Connecting an existing git repository to FGAddon ===
=== Connecting an existing git repository to FGAddon ===
1,361

edits

Navigation menu