A Node.js wrapper for the Git CLI with an API based on Grit
Questions tagged [gift]
6 questions
5
votes
1 answer
Is it possible to use the gift library to view all of the branches of a remote repository?
Gift is a node.js library that implements grit like functionality. To view remote branches, ordinarly I would do git branch -r, but I don't see any such functionality in the gift package.
Is it possible, using gift, to view all of the remote…

Shamoon
- 41,293
- 91
- 306
- 570
1
vote
1 answer
Using awk to process html-related Gift-format Moodle questions
This is basically a awk question but it is about processing data for the Moodle
Gift format, thus the tags.
I want to format html code in a question (Moodle "test" activity) but I need to replace < and > with the corresponding entities, as these…

kebs
- 6,387
- 4
- 41
- 70
1
vote
0 answers
Paypal adaptive payments by gift certificates
How can I implement the PayPal chained payment by gift certificates?
There is no way to choose "Gift certificate" as a payment method during the adaptive payments, e.g. chained payment.
See the [Screenshot of the window after clicking to change the…

Ani Papyan
- 88
- 8
1
vote
1 answer
How can I get the contents of a file of a git commit with the gift library?
I am using the https://github.com/notatestuser/gift library and here's what I have:
gitCommit.tree().contents (err, gitTreeContents) ->
console.log gitTreeContents
This gives me the tree contents, which is an array with objects that look like:
{…

Shamoon
- 41,293
- 91
- 306
- 570
0
votes
1 answer
Word Document Formatting Issue
I am currently trying to manipulate a Word file to get it in a proper format to convert it to a GIFT format. Currently, I have the document in the following form:
This is a question?
a Correct Answer
b Distractor
c Distractor
d Distractor
This is…
0
votes
1 answer
Every tenth product a free gift in woocommerce
Using WooCommerce promotional discount: Buy 10 Get 1 Free answer, is exactly what I was looking for. Except I need this to work for every tenth added product. So, when someone puts in a total of 10 products from $targeted_product_ids, every tenth…

Danny
- 95
- 9