aboutsummaryrefslogtreecommitdiffstats
path: root/etc/drive-google/.driveignore
blob: 9e192dd6882cea728b8743366a12d81f34336636 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
###################################################################################################
# .driverignore
###################################################################################################
# Copyright 2017-2018 Emmanuel T Odeke <emm.odeke@gmail.com>
#
# Enhanced by Jean-Christophe Manciot <manciot.jeanchristophe@gmail.com>
# https://github.com/odeke-em/drive/issues/778#issuecomment-267805915
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except 
# in compliance with the License. You may obtain a copy of the License at:
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# This file is using a project hosted at https://github.com/odeke-em/drive, originally developed 
# by Burcu Dogan while working on the Google Drive team and now maintained by Emmanuel T Odeke.
#
# Attribution — You must give appropriate credit, provide a link to the license, and indicate if 
#               changes were made. You may do so in any reasonable manner, but not in any way that 
#               suggests the licensor endorses you or your use.
###################################################################################################

###################################################################################################
#
# Text file located in <google_drive_folder> only and listing all objects that must be excluded or 
# included using regular expressions.
#
#--------------------------The sections feature is not supported by drive yet---------------------- 
# The regular expressions can be grouped into different [sections] affecting:
#       - all commands:         [global] - all and * are aliases to global
#       - a group of commands:  [<command1>/<command2>/<command3>/...]
#       - a single command:     [<command1>]
#
# If .driverignore is empty or if there is no section [<command>] for the current drive-<command>, 
# **all** objects recursively found below the current working directory will be affected by the  
# current drive-<command>.
#
# All global regular expressions apply until the same regular expressions are overridden by more 
# specific values defined in [<command>] sections. 
# 
# If you don't need the following special regex characters to be interpreted by grep:
# - $.\^(){}+[] characters must be escaped with \ 
# - /?* characters must NOT be escaped 
#
# Supported sections:
# ------------------
# The list of possible [<command>] names is subject to change but should at least contain
# the following ones for now:
#       + global or all or *:   for all drive<command>
#       + clashes           --> for drive-check-duplicates
#       + delete                for drive-delete
#       + list                  for drive-list
#       + list-shared           for drive-list-shared
#       + list-starred          for drive-list-starred
#       + publish               for drive-publish
#       + pull                  for drive-pull
#       + push                  for drive-push
#       + share-link            for drive-share-link
#       + stat              --> for drive-stats
#       + sync                  for drive-sync
#       + touch                 for drive-touch
#       + trash                 for drive-trash
#       + unpublish             for drive-unpublish
#       + unshare               for drive-unshare
#       + untrash               for drive-untrash
#
# Excluding/including rules:
# -------------------------
# - All lines NOT beginning with ! are **excluded** from the scope of the drive-<command>.
# - All lines beginning with ! are **included** in the scope of the drive-<command>.
# - This means that the search logic is inverted from .driveselect logic.
# - The order of objects within a section does not matter, but:
#       + included objects are usually searched first, regardless of the order within the section
#       + excluded objects are then used to filter the first searched list.
# - If you're unfamiliar with'regular expressions, use .driveselect instead.
#
# For instance:
# ------------
# [global]              # Affecting all commands
# \.gd.*                # Excluding .gd and all files within .gd to prevent your credentials from 
#                         being uploaded onto your remote Google Drive
# .*\.drive.*           # Excluding all files containing .drive: special files used by drive, 
#                         drive-* and .drive-*
# 
# [list/pull/push]      # More specific values affecting only those commands
# .*OAuth2.*            # Excluding all OAuth2 files
# .*\.luks.*            # Excluding all .luks files
#
# [publish]             # More specific values affecting only that command
# !.*\.pdf              # Including only pdf files
# 
###################################################################################################
# [global] or [<command>] sections not supported by drive yet

# Ignoring .gd and all files within .gd to prevent your credentials from being uploaded onto your remote Google Drive
# Uncomment if hidden=true in <google_drive_folder>/.driverc
# \.gd.*

# Ignoring all special files used by drive: .drive*
# Uncomment if hidden=true in <google_drive_folder>/.driverc
# \.drive.*
# .*/\.drive.*