Skip to content
This repository was archived by the owner on Apr 12, 2019. It is now read-only.

Commit 288aede

Browse files
tf198lafriks
authored andcommitted
Added FollowLink() method to TreeEntry (#114)
Signed-off-by: Tris Forster <[email protected]>
1 parent dac1986 commit 288aede

16 files changed

+92
-1
lines changed

error.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,16 @@ func (err ErrNotExist) Error() string {
4040
return fmt.Sprintf("object does not exist [id: %s, rel_path: %s]", err.ID, err.RelPath)
4141
}
4242

43+
// ErrBadLink entry.FollowLink error
44+
type ErrBadLink struct {
45+
Name string
46+
Message string
47+
}
48+
49+
func (err ErrBadLink) Error() string {
50+
return fmt.Sprintf("%s: %s", err.Name, err.Message)
51+
}
52+
4353
// ErrUnsupportedVersion error when required git version not matched
4454
type ErrUnsupportedVersion struct {
4555
Required string
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
x��1n�0 E3�� �-�&����H&F+�ա�o�#d����/��X: ��zS�i��Z�b1�ؔSa��g�@�F�35];̈�'Ɇ%s�D��5������R,��w��_m�೶�k�C�����v�"?��}m�#�8"�#|xDt����f��ET �z���z��/��N�
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)