72 Commits

Author SHA1 Message Date
Zhizhen He
32975ee2c7 *: fix some typos
Signed-off-by: Zhizhen He <hezhizhen.yi@gmail.com>
2023-09-08 09:30:43 +08:00
Paulo Gomes
36477e82f2 Merge pull request #804 from pjbgf/docs
*: Improve docs on examples, compatibility and extensibility
2023-07-24 10:00:51 +01:00
Arieh Schneier
e0fc8a8f00 plumbing: blame, Complete rewrite. Fixes #603
Signed-off-by: Arieh Schneier <15041913+AriehSchneier@users.noreply.github.com>
2023-07-06 08:45:49 +10:00
Paulo Gomes
dca0c4c669 *: Improve docs on examples, compatibility and extensibility
Fixes #777

Signed-off-by: Paulo Gomes <pjbgf@linux.com>
2023-07-02 22:34:19 +01:00
Paulo Gomes
4e1b9c8c55 Merge pull request #357 from pascal-hofmann/patch-1
_examples: Remove wrong comment
2023-07-01 23:16:04 +01:00
Paulo Gomes
096b3cc16b *: Remove use of deprecated io/util
Signed-off-by: Paulo Gomes <pjbgf@linux.com>
2023-05-11 21:59:37 +01:00
Paulo Gomes
19b39e1500 git: Add support to ls-remote with peeled references. Fixes #749
A new PeelingOption field was introduced into ListOptions. The new options
include the default (and backwards compatible) IgnorePeeled. Plus another
two variations which either only returns peeled references (OnlyPeeled), or
append peeled references to the list (AppendPeeled).

The ls-remote example was updated to align with upstream, in which peeled
references are appended to the results by default.

A new ErrEmptyUrls error is now returned when List or ListContext do not
receive a URL to work with, to improve overall execution flow.

Signed-off-by: Paulo Gomes <pjbgf@linux.com>
2023-05-03 08:39:07 +01:00
Paulo Gomes
8e8281008e examples: Add example for SHA256 repositories
Add a new example on initializing a new repository with object format SHA256.
A new Makefile target was created to run the example to ensure that new changes
won't break SHA256 support going forwards.

Relates to the SHA256 implementation, defined in #706.

Signed-off-by: Paulo Gomes <pjbgf@linux.com>
2023-03-08 00:15:02 +00:00
pat-nel87
1162350e2d _examples: README.md , Remove broken Config link.
This link is broken and doesn't appear to map to anything current. 
I propose We remove this link.
2023-02-27 19:18:12 -05:00
Paulo Gomes
9c7d2df0f3 Allow unsupported multi_ack capability
Azure DevOps requires capabilities multi_ack / multi_ack_detailed,
which are not fully implemented and by default are included in
transport.UnsupportedCapabilities.

The initial clone operations require a full download of the repository,
and therefore those unsupported capabilities are not as crucial, so
by removing them from that list allows for the first clone to work
successfully.

Additional fetches will yield issues, therefore to support that
repository users have to work from a clean clone until those
capabilities are fully supported. Commits and pushes back into the
repository have also been tested and work fine.

This change adds an example for cloning Azure DevOps repositories.

Signed-off-by: Paulo Gomes <pjbgf@linux.com>
2022-11-16 10:59:05 +00:00
NeP
f438ca3483 examples: remote fix typo (#408) 2021-12-10 06:39:50 +01:00
Sven Nebel
06a3e504be examples: add find-if-any-tag-point-head
Signed-off-by: Sven Nebel <nebel.sven@gmail.com>
2021-09-24 11:21:06 +01:00
Pascal Hofmann
97403a1019 _examples: Remove wrong comment 2021-07-30 14:48:43 +02:00
fatelei
0518e8de71 chore: add an exmaple: clone with ssh 2020-08-22 17:11:16 +08:00
Máximo Cuadros
5cafe4097c _examples: tag-create-push, remove defaultSignature 2020-06-14 01:45:33 +02:00
Liviu Costea
1d4220f460 examples, tag: Show git command 2020-06-01 14:42:50 +03:00
Liviu Costea
ba94982f4d examples: tag, Add create and push new tag 2020-05-31 18:07:30 +03:00
Máximo Cuadros
baf8c27612 _examples: config example 2020-05-24 14:35:08 +02:00
Máximo Cuadros
d13825550a Merge branch 'master' of github.com:go-git/go-git into scope-config 2020-05-24 14:34:30 +02:00
Máximo Cuadros
c80979499a Revert "Merge pull request #20 from quorumcontrol/feature/other-configs"
This reverts commit 3127ad9a44, reversing
changes made to 73c52edaad.
2020-05-24 09:15:51 +02:00
Máximo Cuadros
936faa404e Revert "Merge pull request #31 from lcostea/liviu/add_save_config_changes"
This reverts commit 53f87846a1, reversing
changes made to bb3a1bfcc6.
2020-05-24 09:15:42 +02:00
Pierre-Yves Aillet
18a3f64365 doc: add submodule to example index 2020-05-18 11:06:36 +02:00
Pierre-Yves Aillet
199a7a3218 _examples: submodule, adding an example with submodule update
the goal of this pull request is to add an example of how to make
the equivalent of `git submodule update --remote` with `go-git`
2020-05-14 21:35:28 +02:00
Liviu Costea
9437ff56b4 examples: config, Show how to save config changes 2020-04-18 12:15:06 +03:00
Wes Morgan
68bffab4d6 Simplify a couple of config examples 2020-04-07 07:59:36 -06:00
Wes Morgan
4d4e2b1fe2 Add advanced usage note to config example 2020-04-07 07:59:17 -06:00
Wes Morgan
ecb64c0481 Add Merged config
...for reading and writing global (~/.git/config) and reading system (/etc/gitconfig) configs in addition to local repo config
2020-04-06 10:32:06 -06:00
Máximo Cuadros
2bdfd91f04 *: migration from gopkg to go modules 2020-03-10 00:40:56 +01:00
Oleksandr Redko
81627ab53e Fix typos in comments, variables and function names
Signed-off-by: Oleksandr Redko <oleksandr.red+github@gmail.com>
2019-10-24 23:37:27 +03:00
Máximo Cuadros
3e42b8cd3f Merge pull request #1195 from digininja/master
Spelling mistake
2019-08-16 22:09:10 +02:00
Theodore Keloglou
e79f533172 examples: Fix typo on pull example
Signed-off-by: Theodore Keloglou <theodorekeloglou@gmail.com>
2019-08-07 23:34:25 +03:00
knqyf263
c7fc75ef6e Add limiting options to git log
Signed-off-by: knqyf263 <knqyf263@gmail.com>
2019-08-04 23:27:33 -10:00
Robin Wood
70bff14e55 Spelling mistake
Signed-off-by: Robin Wood <robin@digi.ninja>
2019-07-27 17:34:18 +01:00
Valentin Cocaud
b4fba7ede1 git : allows to create a Remote without a Repository
Signed-off-by: Valentin Cocaud <v.cocaud@gmail.com>
2019-06-17 22:51:37 +02:00
David Pordomingo
66c4a36212 Add merge-base command
Signed-off-by: David Pordomingo <David.Pordomingo.F@gmail.com>
2019-06-03 20:58:26 +02:00
Filip Navara
0073a49b95 Allow non-.git path for ls example
Signed-off-by: Filip Navara <filip.navara@gmail.com>
2019-05-07 12:26:55 +02:00
Filip Navara
d8471a32b6 Add test parameters for ls example
Signed-off-by: Filip Navara <filip.navara@gmail.com>
2019-05-07 11:48:52 +02:00
Filip Navara
944861a8df Add example for commit-graph traversal
Signed-off-by: Filip Navara <filip.navara@gmail.com>
2019-05-07 11:33:25 +02:00
HashedDan
73e0fe950d examples: commit, fixed minor typo in info statement
Signed-off-by: HashedDan <georgedanielmangum@gmail.com>
2019-04-15 14:59:47 -05:00
Lukasz Kokot
190bfd6aa6 Fix spelling and grammar in docs and example
Signed-off-by: Lukasz Kokot <lukasz@kumojin.com>
2018-10-28 20:59:41 -04:00
Colton J. McCurdy
cde0367919 examples & documentation: PlainClone with Basic Authentication (Password & Access Token) (#990)
examples: PlainClone with Basic Authentication (Password & Access Token)
2018-10-25 20:49:54 +02:00
Eric Billingsley
bf6190841e plumbing/transport: http, Adds token authentication support [Fixes #858]
Signed-off-by: Eric Billingsley <ebilling@babrains.com>
2018-06-08 15:19:12 -07:00
Máximo Cuadros
4d43799bf1 _examples: branch example improvements
Signed-off-by: Máximo Cuadros <mcuadros@gmail.com>
2018-01-15 17:12:59 +01:00
marwan-at-work
483e1911fc add branch add/remove example 2018-01-09 20:16:14 -05:00
Anthony HAMON
44c364fe3b Fix revision solver for branch and tag (#660)
fix Repository.ResolveRevision for branch and tag
2017-12-01 16:27:52 +01:00
ferhat elmas
3452c3bde5 all: gofmt -s 2017-11-30 01:50:43 +01:00
ferhat elmas
d9b8691c6b examples,plumbing,utils: typo fixes 2017-11-20 03:55:01 +01:00
Alexander
86e75a59f4 Update README.md
Update like to storage GoDoc
2017-09-09 14:22:48 +02:00
Máximo Cuadros
fc560b8c75 _examples: context 2017-08-22 16:48:35 +02:00
Ori Rawlings
5ed7c5ca03 Add example for pulling changes 2017-08-13 20:42:23 -05:00