You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2024/02/20 16:27:51 UTC

(camel) 02/12: CAMEL-20410: documentation fixes for camel-git

This is an automated email from the ASF dual-hosted git repository.

orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 0d6bde6da3625265d86590d7f75467bc59b81af9
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Tue Feb 20 15:56:50 2024 +0100

    CAMEL-20410: documentation fixes for camel-git
    
    - Fixed samples
    - Fixed grammar and typos
    - Fixed punctuation
    - Added and/or fixed links
---
 .../camel-git/src/main/docs/git-component.adoc     | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/components/camel-git/src/main/docs/git-component.adoc b/components/camel-git/src/main/docs/git-component.adoc
index ecbfcccb4f6..344de8ef5b7 100644
--- a/components/camel-git/src/main/docs/git-component.adoc
+++ b/components/camel-git/src/main/docs/git-component.adoc
@@ -34,8 +34,8 @@ git://localRepositoryPath[?options]
 
 == URI Options
 
-The producer allows to do operations on a specific repository. +
-The consumer allows consuming commits, tags and branches on a specific
+The producer allows doing operations on a specific repository.
+The consumer allows consuming commits, tags, and branches in a specific
 repository.
 
 
@@ -58,9 +58,9 @@ include::partial$component-endpoint-headers.adoc[]
 
 == Producer Example
 
-Below is an example route of a producer that add a file test.java to a
-local repository, commit it with a specific message on master branch and
-then push it to remote repository.
+Below is an example route of a producer that adds a file test.java to a
+local repository, commits it with a specific message on the `main` branch and
+then pushes it to remote repository.
 
 [source,java]
 --------------------------------------------------------------------------------------------------------------------
@@ -71,7 +71,7 @@ from("direct:start")
     .to("git:///tmp/testRepo?operation=commit")
     .to("git:///tmp/testRepo?operation=push&remotePath=https://foo.com/test/test.git&username=xxx&password=xxx")
     .to("git:///tmp/testRepo?operation=createTag&tagName=myTag")
-    .to("git:///tmp/testRepo?operation=pushTag&tagName=myTag&remoteName=origin")
+    .to("git:///tmp/testRepo?operation=pushTag&tagName=myTag&remoteName=origin");
 --------------------------------------------------------------------------------------------------------------------
 
 == Consumer Example
@@ -85,19 +85,19 @@ from("git:///tmp/testRepo?type=commit")
 ---------------------------------------
 
 == Custom config file
-By default camel-git will load ``.gitconfig`` file from user home folder. You
-can override this by providing your own ``.gitconfig`` file.
+By default, camel-git will load ``.gitconfig`` file from user home folder.
+You can override this by providing your own ``.gitconfig`` file.
 
 [source,java]
 ---------------------------------------
 from("git:///tmp/testRepo?type=commit&gitConfigFile=file:/tmp/configfile")
-    .to(....) //will load from os dirs
+    .to(....); // will load from os dirs
 
 from("git:///tmp/testRepo?type=commit&gitConfigFile=classpath:configfile")
-    .to(....) //will load from resources dir
+    .to(....); // will load from resources dir
 
 from("git:///tmp/testRepo?type=commit&gitConfigFile=http://somedomain.xyz/gitconfigfile")
-    .to(....) //will load from http. You could also use https
+    .to(....); // will load from http. You could also use https
 ---------------------------------------
 
 include::spring-boot:partial$starter.adoc[]