aboutsummaryrefslogtreecommitdiff
path: root/bdep/sync.hxx
blob: 741e51962416c4dff2383715fb473b860bf92aec (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
// file      : bdep/sync.hxx -*- C++ -*-
// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
// license   : MIT; see accompanying LICENSE file

#ifndef BDEP_SYNC_HXX
#define BDEP_SYNC_HXX

#include <bdep/types.hxx>
#include <bdep/utility.hxx>

#include <bdep/project.hxx>
#include <bdep/sync-options.hxx>

namespace bdep
{
  // If fetch is false, don't perform a (shallow) fetch of the project
  // repository.
  //
  void
  cmd_sync (const common_options&,
            const dir_path& prj,
            const shared_ptr<configuration>&,
            bool fetch = true);

  int
  cmd_sync (const cmd_sync_options&, cli::scanner& args);
}

#endif // BDEP_SYNC_HXX