EnglishFrenchSpanish

OnWorks favicon

git-debimport - Online in the Cloud

Run git-debimport in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command git-debimport that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


git-debimport - create a git repository from a set of existing Debian packages

SYNOPSIS


git-debimport [options] path-prefix

DESCRIPTION


This program will create a git repository of all files that match ${path-prefix}_*.diff.gz
or ${path-prefix}_*.debian.tar.{gz,bz2,xz} (with their corresponding
orig.tar.{gz,bz2,xz}), or of all files that match ${path-prefix}_*.tar.{gz,bz2,xz} (for
Debian native packages).

OPTIONS


The following options are available:

--fetch
Attempt to download all available versions from snapshot.debian.org rather than use
an existing set of packages. The debsnap(1) utility, from devscripts 2.10.63 or
later, must be available in the path to use this option (earlier debsnap versions
only supported snapshot.debian.net which is no longer a functional mirror). The
packages will be downloaded into the location implied by the path-prefix where they
would normally be expected to exist already without this option. Downloaded
packages will not automatically be removed after this operation is complete.

--late-merge
Early versions of git-debimport would only merge the upstream and debian branches
after the import of all packages was complete. This avoids an import failing where
the merge might have conflicts that would need to be manually resolved. We know
the import of the next package in the series will contain a resolution to any such
conflict, so delaying the merge allows the import to proceed without intervention
or introducing changes that were not part of the original history. It does however
produce a lesser quality history for the purposes of browsing the Debian changes.
All the original packages may be retrieved from such a repo with perfect fidelity,
but the diff between adjacent Debian versions will be mingled with upstream changes
too.

The default for current versions of git-debimport is to merge each new upstream
release as it is imported. This gives a much more natural and useful looking
history, but may fail in some cases. Use this option to employ the older more
reliable method for packages that generate conflicts during import.

-v, --verbose
Be more noisy about reporting operations in progress. Mostly only useful with the
--fetch option at present.

EXAMPLE


Import an archive of existing 'mypackagename' packages from mysrcdir:
$ mkdir mydestdir && cd mydestdir
$ git-debimport ../mysrcdir/mypackagename

Import all available versions of gitpkg from snapshot.debian.org:
$ mkdir mydestdir && cd mydestdir
$ git-debimport --fetch ../my-gitpkg-sources/gitpkg

NOTES


It is unfortunate that at the present time, many of the tools for importing source to git
from an existing revision control system all leave something to be desired. This script
does not solve that problem. What it does do however is create a repository that makes it
possible to accurately extract all of the earlier packages which were injected to it.
This is sadly more than can be said for the result of running git-cvsimport on a repo
created by cvs-buildpackage, for example.

It is currently very simple, and makes a number of hard-coded assumptions about the
resulting repo. For debian-versioned packages it will create a repo with two branches:

upstream - for the pristine upstream source
master - for the Debianised source

Native versioned packages will have only the master branch.

While the loss of fine grained history on individual commits is most regrettable, this
script enables a maintainer to import a usable record of the previously released packages
as a base for future development. This may be an acceptable trade-off for people who feel
the advantage of moving future development to git now outweighs the inconvenience of
needing to refer to a legacy repository for full details of previous commits.

Hopefully the problems of accurately importing from other revision control systems will be
solved one day, but in the meantime, a brief but accurate history seems more useful than a
detailed but largely bogus one.

With the addition of the debsnap(1) tool, the useful life of this has been extended beyond
the originally envisaged need. People who do not have access to the original revision
control history at all can build for themselves a useful base for further development,
quickly and easily, from the packages that are still available on public snapshot mirrors.

Use git-debimport online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    KDiff3
    KDiff3
    This repository is no longer maintained
    and is kept for archival purposes. See
    https://invent.kde.org/sdk/kdiff3 for
    the newest code and
    https://download.kde.o...
    Download KDiff3
  • 2
    USBLoaderGX
    USBLoaderGX
    USBLoaderGX is a GUI for
    Waninkoko's USB Loader, based on
    libwiigui. It allows listing and
    launching Wii games, Gamecube games and
    homebrew on Wii and WiiU...
    Download USBLoaderGX
  • 3
    Firebird
    Firebird
    Firebird RDBMS offers ANSI SQL features
    & runs on Linux, Windows &
    several Unix platforms. Features
    excellent concurrency & performance
    & power...
    Download Firebird
  • 4
    KompoZer
    KompoZer
    KompoZer is a wysiwyg HTML editor using
    the Mozilla Composer codebase. As
    Nvu's development has been stopped
    in 2005, KompoZer fixes many bugs and
    adds a f...
    Download KompoZer
  • 5
    Free Manga Downloader
    Free Manga Downloader
    The Free Manga Downloader (FMD) is an
    open source application written in
    Object-Pascal for managing and
    downloading manga from various websites.
    This is a mirr...
    Download Free Manga Downloader
  • 6
    UNetbootin
    UNetbootin
    UNetbootin allows you to create bootable
    Live USB drives for Ubuntu, Fedora, and
    other Linux distributions without
    burning a CD. It runs on Windows, Linux,
    and ...
    Download UNetbootin
  • More »

Linux commands

  • 1
    abc2abc
    abc2abc
    abc2abc - a simple abc
    checker/re-formatter/transposer ...
    Run abc2abc
  • 2
    abc2ly
    abc2ly
    abc2ly - manual page for abc2ly
    (LilyPond) 2.18.2 ...
    Run abc2ly
  • 3
    coqdoc
    coqdoc
    coqdoc - A documentation tool for the
    Coq proof assistant ...
    Run coqdoc
  • 4
    coqide
    coqide
    coqide - The Coq Proof Assistant
    graphical interface ...
    Run coqide
  • 5
    g.gui.vdigitgrass
    g.gui.vdigitgrass
    g.gui.vdigit - Interactive editing and
    digitization of vector maps. KEYWORDS:
    general, user interface, GUI, vector,
    editing, digitizer ...
    Run g.gui.vdigitgrass
  • 6
    g.listgrass
    g.listgrass
    g.list - Lists available GRASS data
    base files of the user-specified data
    type optionally using the search
    pattern. KEYWORDS: general, map
    management, list ...
    Run g.listgrass
  • More »

Ad