20 Commits

Author SHA1 Message Date
Arjun Singh
c135ec2f6a fuzzing : fuzz testing support for oss-fuzz integration
Signed-off-by: Arjun Singh <ajsinghyadav00@gmail.com>
2023-10-02 07:22:29 +05:30
Arieh Schneier
5dad9b2303 *: Handle paths starting with ~username
Signed-off-by: Arieh Schneier <15041913+AriehSchneier@users.noreply.github.com>
2023-07-09 17:08:04 +10:00
Joseda Rios
a71389b9d9 internal: Fix regression in csp-like match
Signed-off-by: Joseda Rios <josriolop@gmail.com>
2023-04-15 16:05:43 +02:00
Michael Henriksen
b333364cf3 revision: fix endless looping in revision parser
Fixes a bug in the revision parser which caused an endless loop when
parsing revisions with opening braces "{" but no closing braces "}".

Example bad revisions:

- ^{/
- ~@{
- @@{{0
2022-02-19 15:12:42 +01:00
Máximo Cuadros
641ee1dd69 Merge pull request #125 from cristaloleg/minor-linter-fixes
*: minor linter fixes
2020-07-16 21:29:58 +02:00
David Symonds
e28d9c90aa Support partial hashes in Repository.ResolveRevision.
Like `git rev-parse <prefix>`, this enumerates the hashes of objects
with the given prefix and adds them to the list of candidates for
resolution.

This has an exhaustive slow path, which requires enumerating all objects
and filtering each one, but also a couple of fast paths for common
cases. There's room for future work to make this faster; TODOs have been
left for that.

Fixes #135.
2020-07-16 12:53:37 +10:00
Oleg Kovalov
a99446e290 Minor linter fixes 2020-07-06 17:40:53 +02:00
Oleg Kovalov
27a034c764 fix goreportcard warnings 2020-07-01 20:51:24 +02:00
Tom Payne
c7b6d19fba plumbing: color, make package external 2020-04-29 04:08:08 +01:00
Tom Payne
743920c9b9 plumbing: diff, Add initial colored output support. Fixes #33. 2020-04-26 19:53:10 +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
Chief
4c43218e7b Use gocheck for test.
Signed-off-by: Chief <admin@117.sh>
2019-08-30 14:08:56 -04:00
Chief
80d88d96cb Add tests for SSH url matching.
Signed-off-by: Chief <admin@117.sh>
2019-08-30 13:15:14 -04:00
Chief
db0e226d48 Add numeric username support for SSH urls.
Signed-off-by: Chief <admin@117.sh>
2019-08-28 18:26:13 -04:00
Jeremy Stribling
f56336220f config: add a way to see if a "remote" URL is local or not
This factors out some URL-parsing code from the transport layer so it
can be used by config as well.

Issue: #909
Signed-off-by: Jeremy Stribling <strib@alum.mit.edu>
2019-02-11 15:13:11 -08:00
ferhat elmas
c606e9fd6c all: fixes for ineffective assign 2017-11-26 23:45:52 +01:00
Anthony HAMON
d0cf207974 Add revision implementation (#139) 2017-02-06 17:53:11 +01:00
Máximo Cuadros
c6349552c1 internal -> core 2015-10-31 01:14:03 +01:00
Máximo Cuadros
7d6c5a56c0 tree and commit 2015-10-27 01:49:58 +01:00
Máximo Cuadros
688e802814 objects: using readers from internal.Object 2015-10-26 01:22:54 +01:00