Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

https://github.com/audemard/glucose
09 May 2023, 15:45:59 UTC
  • Code
  • Branches (9)
  • Releases (0)
  • Visits
    • Branches
    • Releases
    • HEAD
    • refs/heads/glucose-reboot
    • refs/heads/main
    • refs/tags/1.0
    • refs/tags/2.0
    • refs/tags/2.1
    • refs/tags/3.0
    • refs/tags/4.0
    • refs/tags/4.1
    • refs/tags/4.2.1
    No releases to show
  • c4c4d05
  • /
  • utils
  • /
  • Verbose.h
Raw File Download Save again
Take a new snapshot of a software origin

If the archived software origin currently browsed is not synchronized with its upstream version (for instance when new commits have been issued), you can explicitly request Software Heritage to take a new snapshot of it.

Use the form below to proceed. Once a request has been submitted and accepted, it will be processed as soon as possible. You can then check its processing state by visiting this dedicated page.
swh spinner

Processing "take a new snapshot" request ...

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
  • directory
  • revision
  • snapshot
origin badgecontent badge
swh:1:cnt:69e7cdb25f395e104de32a6232b0dce8d5712214
origin badgedirectory badge
swh:1:dir:bb2cc029bb2b2d22ebb4c9a3bc3c93c02abc71ea
origin badgerevision badge
swh:1:rev:8cf82dc753b3ec6789bb7f926751f1b15403d091
origin badgesnapshot badge
swh:1:snp:28e547ea0ad832adcfd63a2cee0fa00955eb6e69

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
  • directory
  • revision
  • snapshot
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
Tip revision: 8cf82dc753b3ec6789bb7f926751f1b15403d091 authored by audemard on 09 May 2023, 13:35:33 UTC
glucose reboot
Tip revision: 8cf82dc
Verbose.h
#ifndef VERBOSE_H
#define VERBOSE_H

#include <stdarg.h>
#include <stdio.h>

#define NOVERBOSE    -1
#define NORMAL       1
#define DEBUGVERBOSE 2
#define FULLVERBOSE  3
#define TOTALVERBOSE 4


// Terminal color
#define KNRM "\x1B[0m"
#define KRED "\x1B[31m"
#define KGRN "\x1B[32m"
#define KYEL "\x1B[33m"
#define KBLU "\x1B[34m"
#define KMAG "\x1B[35m"
#define KCYN "\x1B[36m"
#define KWHT "\x1B[37m"


namespace Glucose {
class Verbose {
   public:
    int verbosity;
    explicit Verbose(int v = NORMAL) : verbosity(v) { }

    void log(int vb, const char* format, ...) const {
        if(vb > verbosity) return;
        va_list argptr;
        va_start(argptr, format);
        vfprintf(stdout, format, argptr);
        va_end(argptr);
    }
};
};   // namespace Glucose

#endif /* VERBOSE_H */

back to top

Software Heritage — Copyright (C) 2015–2026, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API