BadScript 2
Loading...
Searching...
No Matches
Immutable_Verb_Fakes.cs
Go to the documentation of this file.
1// Copyright 2005-2015 Giacomo Stelluti Scala & Contributors. All rights reserved. See License.md in the project root for license information.
2
3using System.Collections.Generic;
4
6{
7 [Verb("add", HelpText = "Add file contents to the index.")]
9 {
10 private readonly bool patch;
11 private readonly bool force;
12 private readonly string fileName;
13
14 public Immutable_Add_Verb(bool patch, bool force, string fileName)
15 {
16 this.patch = patch;
17 this.force = force;
18 this.fileName = fileName;
19 }
20
21 [Option('p', "patch", SetName = "mode",
22 HelpText = "Interactively choose hunks of patch between the index and the work tree and add them to the index.")]
23 public bool Patch { get { return patch; } }
24
25 [Option('f', "force", SetName = "mode",
26 HelpText = "Allow adding otherwise ignored files.")]
27 public bool Force { get { return force; } }
28
29 [Value(0)]
30 public string FileName { get { return fileName; } }
31 }
32
33 [Verb("commit", HelpText = "Record changes to the repository.")]
35 {
36 private readonly bool patch;
37 private readonly bool amend;
38
40 {
41 this.patch = patch;
42 this.amend = amend;
43 }
44
45 [Option('p', "patch",
46 HelpText = "Use the interactive patch selection interface to chose which changes to commit.")]
47 public bool Patch { get { return patch; } }
48
49 [Option("amend", HelpText = "Used to amend the tip of the current branch.")]
50 public bool Amend { get { return amend; } }
51 }
52
53 [Verb("clone", HelpText = "Clone a repository into a new directory.")]
55 {
56 private readonly bool noHardLinks;
57 private readonly bool quiet;
58 private readonly IEnumerable<string> urls;
59
60 public Immutable_Clone_Verb(bool noHardLinks, bool quiet, IEnumerable<string> urls)
61 {
62 this.noHardLinks = noHardLinks;
63 this.quiet = quiet;
64 this.urls = urls;
65 }
66
67 [Option("no-hardlinks",
68 HelpText = "Optimize the cloning process from a repository on a local filesystem by copying files.")]
69 public bool NoHardLinks { get { return noHardLinks; } }
70
71 [Option('q', "quiet",
72 HelpText = "Suppress summary message.")]
73 public bool Quiet { get { return quiet; } }
74
75 [Value(0)]
76 public IEnumerable<string> Urls { get { return urls; } }
77 }
78}
Immutable_Add_Verb(bool patch, bool force, string fileName)
Immutable_Clone_Verb(bool noHardLinks, bool quiet, IEnumerable< string > urls)