Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translation #7: 1122 Words Translated #73

Merged
merged 10 commits into from
Feb 22, 2018

Conversation

cherryloua
Copy link

Hi guys!

Good day!

Please, take some time to review may Pull Request. Thank you!

Copy link

@josteinfrancois josteinfrancois left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @cherryloua. I have reviewed your work. Good job! I only have a few suggestions. Thanks.

This combination effectively filters all C source code files through `indent` before committing.
Sa kasong ito, kapag nag-commit ka ng mga file na tumutugma sa `*.c`, ang Git ay tatakbo sa mga ito sa pamamagitan ng indent na programa bago ito i-stage nila at pagkatapos patakbuhin ang mga ito sa programa ng `cat` bago suriin ang mga ito pabalik sa disk.
Ang `cat` na programa ay talagang walang magawa: iniluwa palabas nito ang parehong data na pinasok dito.
Ang kumbinasyon na ito ay epektibong sinasala ang lahat ng mga file ng source code C sa `indent` bago ito i-commit.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

source code sa C

Another interesting example gets `$Date$` keyword expansion, RCS style.
To do this properly, you need a small script that takes a filename, figures out the last commit date for this project, and inserts the date into the file.
Here is a small Ruby script that does that:
Ang isa pang interesanteng halimbawa ay nakakuha ng pagpapalawak ng keyword na `$Date$`, estilo ng RCS.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

interesanteng to kawili-wili

You can name this file `expand_date` and put it in your path.
Now, you need to set up a filter in Git (call it `dater`) and tell it to use your `expand_date` filter to smudge the files on checkout.
You'll use a Perl expression to clean that up on commit:
Ang lahat ng script ay makakakuha ng pinakabagong petsa ng pag-commit mula sa `git log` na utos, i-stick sa anumang `$Date$` na mga string na nakikita sa stdin, at i-print ang mga resulta - ito ay dapat madaling gawin sa anumang language na ikaw ay pinaka-komportable. Maaari mong pangalanan ang file na ito `expand_date` at ilagay ito sa iyong path. Sa ngayon, kailangan mong mag-set up ng isang filter sa Git (tawagin mo `dater`) at sabihin ito upang gamitin ang iyong `expand_date` na filter sa smudge ng mga file sa checkout.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i-stick to idikit

@@ -266,7 +264,7 @@ date*.txt filter=dater
$ echo '# $Date$' > date_test.txt
----

If you commit those changes and check out the file again, you see the keyword properly substituted:
Kung nag-commit ka ng mga pagbabago at tignan mo muli ang file, nakikita mo ang keyword na maayos na pinalitan:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tignan to tingnan


For example, say you have some test files in a `test/` subdirectory, and it doesn't make sense to include them in the tarball export of your project.
You can add the following line to your Git attributes file:
Halimbawa, sabihin natin mayroon kang ilang mga test file sa `test/` subdirectory, at hindi ito makatwiran upang isama ang mga ito sa pag-export ng tarball ng iyong proyekto.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sabihin nating


For instance, if you want to include a file named `LAST_COMMIT` in your project, and have metadata about the last commit automatically injected into it when `git archive` runs, you can for example set up your `.gitattributes` and `LAST_COMMIT` files like this:
Halimbawa, kung gusto mong isama ang isang file na pinangalanang `LAST_COMMIT` sa iyong proyekto, at may metadata tungkol sa huling nag-commit awtomatikong na-inject ito kapag ang `git archive` ay tumatakbo, kaya mo tulad ng halimbawang i-set up ang iyong mga `.gitattributes` at` LAST_COMMIT` na mga file tulad nito:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

proper spacing in -
at LAST_COMMIT

@@ -330,7 +327,7 @@ $ cat ../deployment-testing/LAST_COMMIT
Last commit date: Tue Apr 21 08:38:48 2009 -0700 by Scott Chacon
----

The substitutions can include for example the commit message and any `git notes`, and `git log` can do simple word wrapping:
Maaaring isama sa mga pamalit halimbawa ang na i-commit mensahe at anumang `git notes`, at` git log` ay maaaring gumawa ng simpleng word wrapping:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Maaaring isama sa mga pamalit na halimbawa ang na i-commit na mensahe
  • proper spacing at - at git log


==== Merge Strategies
==== Pagsamahin ang Istratehiya

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pagsamahin ang mga Istratehiya


(((merging, strategies)))
You can also use Git attributes to tell Git to use different merge strategies for specific files in your project.
One very useful option is to tell Git to not try to merge specific files when they have conflicts, but rather to use your side of the merge over someone else's.
Maaari mo ring gamitin ang mga katangian ng Git upang sabihin sa Git na gumamit ng iba't ibang mga estratehiya sa pagsasama para sa mga partikular na file sa iyong proyekto.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it estratehiya or istratehiya?

Say you have a database settings file called `database.xml` that is different in two branches, and you want to merge in your other branch without messing up the database file.
You can set up an attribute like this:
Ito ay kapaki-pakinabang kung ang isang branch sa iyong proyekto ay diverged o dalubhasa, ngunit nais mong ma-merge ang mga pagbabago sa likod mula dito, at nais mong huwag pansinin ang ilang mga file.
Sabihing mayroon kang database settings file na tinatawag na `database.xml` na iba sa dalawang branches, at nais mong pagsamahin

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change branches to branch

Copy link

@jjrang11 jjrang11 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey @cherryloua great work! I do have a few suggestions. thanks

In this case, when you commit files that match `*.c`, Git will run them through the indent program before it stages them and then run them through the `cat` program before it checks them back out onto disk.
The `cat` program does essentially nothing: it spits out the same data that it comes in.
This combination effectively filters all C source code files through `indent` before committing.
Sa kasong ito, kapag nag-commit ka ng mga file na tumutugma sa `*.c`, ang Git ay tatakbo sa mga ito sa pamamagitan ng indent na programa bago ito i-stage nila at pagkatapos patakbuhin ang mga ito sa programa ng `cat` bago suriin ang mga ito pabalik sa disk.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you could change ang Git ay tatakbo sa mga ito sa pamamagitan ng indent na programa bago ito i-stage nila to something like Idadaan ng Git ang mga ito sa indent na programa bago ito i-stage


(((git commands, config)))
As you read briefly in <<_getting_started#_getting_started>>, you can specify Git configuration settings with the `git config` command.
One of the first things you did was set up your name and email address:
Habang binabasa mo agad sa <<_getting_started#_getting_started>>, matutukoy mo ang Kompigurasyon ng Git sa `git config` na utos.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kompigurasyon to kumpigurasyon

@@ -1,28 +1,29 @@
[[_git_config]]
=== Git Configuration
=== Kompigurasyon ng Git

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kompigurasyon to Kumpigurasyon

First, a quick review: Git uses a series of configuration files to determine non-default behavior that you may want.
The first place Git looks for these values is in the system-wide `/etc/gitconfig` file, which contains settings that are applied to every user on the system and all of their repositories.
If you pass the option `--system` to `git config`, it reads and writes from this file specifically.
Una, isang mabilis na pagsusuri: Gumagamit ang Git ng isang serye ng mga kompigurasyon na file upang matukoy ang non-default behavior na maaaring gusto mo.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kompigurasyon to kumpigurasyon

The first place Git looks for these values is in the system-wide `/etc/gitconfig` file, which contains settings that are applied to every user on the system and all of their repositories.
If you pass the option `--system` to `git config`, it reads and writes from this file specifically.
Una, isang mabilis na pagsusuri: Gumagamit ang Git ng isang serye ng mga kompigurasyon na file upang matukoy ang non-default behavior na maaaring gusto mo.
Ang unang titingnan ng Git para sa mga halagang ito ay nasa buong sistema ng `/etc/gitconfig` na file, na naglalaman ng mga setting na inilapat sa bawat user sa system at lahat ng kanilang mga repositoryo.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ay nasa buong sistema ng /etc/gitconfig na file to ay ang buong sistema ng /etc/gitconfig na file
sa system at lahat ng kanilang mga repositoryo to sa sistem at lahat ng kanilang mga repositoryo


Finally, Git looks for configuration values in the configuration file in the Git directory (`.git/config`) of whatever repository you're currently using.
These values are specific to that single repository, and represent passing the `--local` option to `git config`.
(If you don't specify which level you want to work with, this is the default.)
Sa katapusan, hinahanap ng Git ang mga value ng konpigurasyon sa konpigurasyon na file sa direktoryo ng Git (`.git/config`) ng anumang repositoryo na kasalukuyang ginagamit mo.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

konpigurasyon to kumpigurasyon

@cherryloua
Copy link
Author

cherryloua commented Feb 21, 2018 via email

@cherryloua
Copy link
Author

cherryloua commented Feb 21, 2018 via email

@severinolorillajr severinolorillajr merged commit 209993e into progit2-tl:master Feb 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants