GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — php-git/example/packbuilder.php at develop · libgit2/php-git

Expand file tree

/

packbuilder.php

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
21 lines (17 loc) · 607 Bytes
/

packbuilder.php

Copy path

File metadata and controls

21 lines (17 loc) · 607 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
$repo = git_repository_open(".");
$pb = git_packbuilder_new($repo);
git_packbuilder_insert_commit($pb, "7a66238ef5f12f754b511f0dfec891c061dbc2e0");
git_packbuilder_insert_commit($pb, "c3b172cda6993b06e8ae6b1bc7f1364968e112c9");
$p = array();
git_packbuilder_set_callbacks($pb, function($stage, $current, $total, &$payload){
echo $stage;
}, $p);
git_packbuilder_write($pb, "/tmp/pack", 0,function($stats, &$payload){
var_dump($stats);
}, $p);
git_packbuilder_foreach($pb, function($b, $size, &$payload) {
echo $size . PHP_EOL;
}, $p);
$hash = git_packbuilder_hash($pb);
var_dump($hash);
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.