Guitar
GitRemote.h
Go to the documentation of this file.
1 
2 #ifndef GITREMOTE_H
3 #define GITREMOTE_H
4 
5 #include <string>
6 
7 struct GitRemote {
8  std::string name;
9  std::string url_fetch;
10  std::string url_push;
11  std::string ssh_key;
12  bool operator < (GitRemote const &r) const
13  {
14  return name < r.name;
15  }
16  std::string const &url() const
17  {
18  return url_fetch;
19  }
20  void set_url(std::string const &url)
21  {
22  url_fetch = url;
23  url_push = url;
24  }
25 };
26 
27 #endif // GITREMOTE_H
Definition: GitRemote.h:7
bool operator<(GitRemote const &r) const
Definition: GitRemote.h:12
std::string ssh_key
Definition: GitRemote.h:11
void set_url(std::string const &url)
Definition: GitRemote.h:20
std::string url_push
Definition: GitRemote.h:10
std::string const & url() const
Definition: GitRemote.h:16
std::string url_fetch
Definition: GitRemote.h:9
std::string name
Definition: GitRemote.h:8